|
|
 |
Re: FN-FORUM: Could be a CSS thing? (Spacing)
date posted 17th May 2006 15:52
[EMAIL REMOVED] wrote:
>
>> I see a lot of sites which do use tabs for spacing in the code
>> and big sites, particularly, are very hard to follow when there
>> is so much code. As far as I know, there is no absolute
>> standard for spacing in code, but am I wrong?
>
> No absolute standard per se, but I had a weird experience with IE recently
> where a horizontal list-based navigation (LI tags) were getting an extra
> space on the left of each LI. This turned out to be IE's interpretation of
> the nicely laid out code that my IDE produced. I manually removed ALL the
> spacing and everything came out on screen as planned, although the code is
> almost unreadable now!
IE is quite picky about whitespace, especially in lists...
in some circumstances you can resolve the problem with a bottom border
on the and still have nicely formatted code.
alternatively you can put the white space after the opening like
this:
Test link
another link
not sure which is worse!
--
Join me: http://wiki.workalone.co.uk/
Thank me: http://www.amazon.co.uk/gp/registry/1VK42TQL7VD2F
Engage me: http://www.boldfish.co.uk/portfolio/
|
 |
|