I'm using jquery autocomplete (+ jquery-ui.min.css), and I'm having issues with the styling. Most previous answers conclude with adding !important to the css, which I'd like to avoid.
Simple code (Autocomplete connects with the search-input id):
<div class="user-search">
<form>
<%= text_field_tag :user, params[:query], id: "search-input" %>
</form>
</div>
However, viewing the dev tools, the this ul class, associated with autocomplete, gets pushed out of the containing div, just inside the body tag.
<ul class="ui-autocomplete ui-front ui-menu ui-widget ui-widget-content">
Is there a better way to override jquery ui styling?
Thanks!
positionoption, not via CSS. Can you add more details about your particular use case? The question as it stands a bit vague