Welcome to WebHeadStart.org

Web Technologies

Sponsored By

WebHeadStart.org is currently in beta.
Please pardon our appearance as we work to provide you with the most comprehensive reference on today's web technologies.

Interested in advertising on WebHeadStart? Become an advertising partner today!

[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date]

Re: Navigation List Issues

From: Lachlan Hunt <lachlan.hunt@iinet.net.au>
Date: Sun, 01 Aug 2004 23:17:00 +1000
Message-ID: <410CED4C.4000206@iinet.net.au>
To: trejkaz@xaoza.net
Cc: www-html@w3.org

Trejkaz Xaoza wrote:
> But <nl> also contains <label>.  There is no container for just the items, as 
> the original poster pointed out.

So what? a seperate container is not necessary.

>>>If I wanted to
>>>apply a style to the list items, would I have to address each one
>>>individually? What if I wanted a simple outset border around just the
>>>list items of a navigation list?
>>
>>  nl li[href] { border: 2px outset black; }
> 
> 
> The original poster wanted a border around the list items, not one border 
> around _each_ list item.

Ok, that's easy.  I created an XHTML2 document and applied this css and 
achieved the desired effect.  I'm sure there are plenty of other way's 
to do it, this is just one.

nl { display: block; border: 2px outset black; }
nl label { margin-top: -1em; }
li { display: list-item; }

-- 
Lachlan Hunt

http://www.lachy.id.au/ 
lachlan.hunt@lachy.id.au
Received on Sunday, 1 August 2004 09:17:48 GMT
Valid XHTML 1.0! Valid CSS! Site Map | Privacy Policy | Terms of Use | WebHeadStart.org © 2005 All Rights Reserved.