Forum Moderators: not2easy
Please have a look in the attached example:
the layout works fine (after some testing) in Mozilla. My problem is that the navigation breaks after the fourth button in IE. If i give a width to the list than the whole navigation breaks after the content at the left side.
Anyone with some advice?
<No URLs or site reviews, thanks. See TOS [WebmasterWorld.com] and CSS Forum Charter [WebmasterWorld.com]>
regards.
Olaf
[edited by: DrDoc at 9:24 pm (utc) on Aug. 20, 2004]
#navcontainer li a { width: 105px; } /* IE sees this */
html>body #navcontainer li a { width: 109px; }
Basically IE sets 105 but doesn't understand what to do with the next line so 105px sticks. Other browsers DO recognize the next line and therefore the new width: 109px overrides the 105px declaration.
Seems like, in your example, IE is just wrapping over to the next line. Why is only IE doing it? Best guess would be the glorious MS box model. If you don't know what is wrong with their box model, you can ask here or do a google search. There's more than enough info. You should familiarize yourself with it as it comes into play quite often.
display:inline to the floating element. For more information on these and similar IE bugs: [webmasterworld.com...]