> That's neat. Could you advise why this comment trick work, and how widely
> does it work across browsers?

It should work in all browsers.  As for how it works, you know how if
you have something like:

Foo
           Bar

in your HTML, it will render as Foo Bar, and not FooBar?  It reduces
multiple spaces, tabs, linebreaks, etc down to one space.  IE is doing
that with the linebreak and any indentation you have between the list
items, so you're getting <li></li>[space]<li></li>.

The comment turns that into <li></li><!--[space]--><li></li> so that
the space is commented, and not rendered.
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to