This may not apply to everyone, but I've found it helpful to use PHP
comments - thereby making code readable but having less gunk in the final
output:

<ul><li><a href="#">Link 1</a></li><?php
/* ============================================= */
?><li><a href="#">Link 2</a></li><?php
/* ============================================= */
?><li><a href="#">Link 3</a></li></ul>


With that said, having space between
...first</li><!-- here --><li>second...
generally causes an apparent 'margin-right' or 'margin-left' space between
the tabs in a horizontal nav in IE that is the result of it stupidly
rendering a space character in the inherited font size (I believe) between
list items.

Erik's original problem is a slight extra 'margin-bottom' that is being
applied to either the li or a elements in his vertical nav-main... which (as
I posted earlier, I believe) is caused by a rule with a margin of 3.5px or
padding of 0.27em.

Tweaking the 3.5px to a 4px in Firebug made the nav taller, and more
IE-like; tweaking the 0.27em to 0.3 padding had a similar effect.



On Jan 25, 2008 5:46 AM, Gabriel Padoan <[EMAIL PROTECTED]> wrote:

> I've done some search, and I found this tip:
> http://phonophunk.com/articles/ie-fix-for-gaps-between-list-items.php
>
> Trying to find this one (that I usually use for this):
> <ul>
> <li>Item Um
> </li><li>Item Dois
> </li>
> </ul>
>
> The second I know that works very well, but the first I have not
> tested because I use Linux, and I can run IE for testing.
>
> Another way is input comments:
> <ul>
> <li>Item Um</li><!--
> --><li>Item Dois</li>
> </ul>
>
> But it's too ugly for the code...
>
> Hope it helps!
>
> On Jan 24, 2008 3:12 PM, Erik Domingo <[EMAIL PROTECTED]> wrote:
> > Validated the markup - except for an issue with a bit of javascript in
> the
> > footer, the page is valid Strict XHTML. I also tried removing all the
> > whitespace between <LI> tags, but the extra vertical space is still
> showing
> > in IE6 & 7.
> >
> > Thoughts?
> >
> > TIA,
> > Erik
> >
> >
> > On Jan 23, 2008 5:35 PM, David Laakso <[EMAIL PROTECTED]>
> wrote:
> >
> > > Erik Domingo wrote:
> > > > I'm having a problem with an unordered list...]
> > > >
> > >
> > > > Erik Domingo
> > > >
> > >
> > >
> > > Validate the markup. Write back if you still drop the float in IE/6.0
> > > and have more vertical space between the li's in IE6 & 7.
> > >
> > > --
> > > http://chelseacreekstudio.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/
> >
>
>
>
> --
> Gabriel de Oliveria Padoan
> [EMAIL PROTECTED]
> ______________________________________________________________________
> 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/
>
______________________________________________________________________
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/

Reply via email to