- I have a top nav that extends across the page
- Within that top nav I have various elements
- two that must align left
- one that must align right
- The nav is fluid the elements are fixed widths
- Do not want the elements to wrap when the browser window is minimized
- Needs to work in IE6 on up due to high Chinese audience.
See example here:
http://jsfiddle.net/4SUwg/
<div id="header">
<div id="headerContent">
<div class="search-list"> Search List </div>
<div class="social-buttons"> Social </div>
<div class="signin"> Login Drop Down </div>
</div>
</div>
I would like the div elements within the nav to not wrap. I searched around on stack and could find answers that come close but nothing that completely addressed the issue. My need to have the div element aligned right complicates matters. Must work in all browsers, especially IE’s.
Thanks all for your help in advance!!!
I found a solution that works in all browsers, specifically IE6 on up since that was a requirement for this project. If you have something better that accomplishes the same thing please post! My sincere thanks to everyone who answered/helped.
See Demo of it working here. Copy the code and try it out in all the IE’s since JSfiddle does not work in all IE’s.
http://jsfiddle.net/GtXKE/