I have successfully implemented jQuery Autocomplete, but I am facing an issue with adjusting the width. Currently, it is set to 268px in Firebug, however, I would like it to be 520px.
After checking the stylesheet, I couldn't locate where the width of 268px is being set. Even using !important to override 'autocomplete-suggestions' doesn't work.
Does anyone have any suggestions on how to change the width from 268px to 520px?
<div id="appendTo">
<div class="autocomplete-suggestions" style="position: absolute; width: 268px; max-height: 300px; z-index: 9999;">
Current CSS
.autocomplete-suggestions {
background-color: #79BE28;
border-radius: 7px;
box-shadow: 0 4px 4px #CCCCCC;
max-height: 650px !important;
width: 520px !important;
}
.autocomplete-suggestions .autocomplete-suggestion {
font-size: 12px;
text-align: left;
color: #fff;
padding: 4px 15px;
cursor: pointer;
}
.autocomplete-suggestions .autocomplete-suggestion:hover {
font-weight: bold;
}
.autocomplete-suggestions .autocomplete-suggestion strong {
text-decoration: underline;
}
.autocomplete-suggestion {
z-index: -1 !important;
}