I have integrated a jQuery autocomplete feature on our website, which generally works well. However, sometimes the returned rows from the autocomplete are not fully visible and appear to be hidden within the containing div.
Can anyone suggest the easiest or best solution to bring these rows forward so that they are fully displayed and overlap the containing div?
This is my 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;
}
And this is the HTML code:
<div id="appendTo">
<div class="autocomplete-suggestions" style="position: absolute; max-height: 300px; z-index: 9999; width: 269px; display: block;">
<!-- List of autocomplete suggestions here -->
</div>
<div class="autocomplete-suggestions" style="position: absolute; display: none; max-height: 300px; z-index: 9999;"></div>