On Jan 14, 2010, at 1:32 AM, Denise McLaurin wrote:
> I'm creating a horizontal unordered list that in most cases will be long
> enough to wrap to more than one line. The <li> and <a> elements are set
> to display:block and float:left. I do not have a set width or height on
> either of these and prefer not to do so.
>
> All works fine in Firefox; however, IE is expanding the height of the
> last element on the initial line (prior to wrapping) rather than
> floating the <li> down to the next line. What can I do to get IE to
> behave like Firefox?
Instead of adding those non-breaking spaces, try
ul.submenu li a { white-space: nowrap; }
Philippe
---
Philippe Wittenbergh
http://l-c-n.com/
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/