Re: List Styling
- From: Andy Dingley <dingbat@xxxxxxxxxxxxxx>
- Date: Tue, 13 May 2008 03:44:12 -0700 (PDT)
On 13 May, 09:23, shapper <mdmo...@xxxxxxxxx> wrote:
My anchor tags inside each list item have a background and margin. The
problem is they are overlapping.
Post a URL not a fragment.
In particular, we don't know what doctype declaration you're using, so
we don't know if IE is in Quirks or Standards mode. That will make a
difference to many issues about box sizing.
I then added to the li tag margin-top: 20px.
When fiddling with lists, always set _all_ the margins and padding on
both <ul> & <li>. This avoids inconsistencies between browser default
stylesheets (some use padding to control lists, some use margin).
<li>
<a title="Page1" href="http://www.name.com/page1">Page1</a>
</li>
is better coded like this:
<li><a title="Page1"
href="http://www.name.com/page1"
>Page1</a></li>
Avoid the whitespace between tags here, as IE is sensitive to it.
Whitespace (including linebreaks) around the attributes inside the
start tag is OK.
.
- References:
- List Styling
- From: shapper
- List Styling
- Prev by Date: Re: OT ping Dorayme, Virtual Gallery
- Next by Date: Re: OT ping Dorayme, Virtual Gallery
- Previous by thread: List Styling
- Next by thread: Re: List Styling
- Index(es):