Within my web application, I have integrated jQuery and jQuery UI (specifically versions 1.10.2 and 1.10.4). To style the components, I utilize the CSS found in
/js/jquery-ui-1.10.4/css/ui-lightness/jquery-ui-1.10.4.min.css
from the jQuery site. Prior to implementing the jQuery-based autocomplete feature, my topNav bar displayed as follows:
MyProfile Link1 Link2 | search box | Logout
The search box was set to a width of 300px, with a font size of 12px. The container div had a width of 700px
. Here is a snippet illustrating the structure prior to adding autocomplete support:
<div class="topNav">
<div class="left">
<a href...>MyProfile</a>>  
<a href...>Link1</a>>  
<a href...>Link2</a>>  
</div>
<input id="searchBox" name="searchBox" type="search" >
<div class="right">
<a href...>Logout</a>
</div>
</div>
Everything was nicely aligned within the topNav section at that time.
After introducing jQuery autocomplete functionality, the layout has shifted slightly. Here's how it looks now:
<div class="topNav">
<div class="left">
<a href...>MyProfile</a>>  
<a href...>Link1</a>>  
<a href...>Link2</a>>  
</div>
<!-- Wrapping the input searchBox in a new div -->
<div class="ui-widget">
<input id="searchBox" name="searchBox" type="search" >
</div>
<div class="right">
<a href...>Logout</a>
</div>
</div>
As a result, the search box now appears on a separate line, causing the alignment to shift:
MyProfile Link1 Link2
| search box | Logout
If anyone can provide guidance on how to realign these elements horizontally post jQuery autocomplete implementation, it would be greatly appreciated.