On 9/22/06, Brian Cummiskey <[EMAIL PROTECTED]> wrote:
> If I only have styles addressed as
>
> ul#foo li#first
> and
> ul#bar li#last

I'm afraid that won't help.  The rule requiring IDs to be unique has
nothing to do with CSS: it's part of the XHTML specification.  (For
all elements, the attribute name "id" is declared to be of type "ID"
in the DTD, which means that the value has to be unique throughout the
document - not only among elements of the same type, but among all
elements.  So not only can you not have two <li>s with the same id,
you can't have an <li> with the same id as a <td>).

The "class" attribute has no such restrictions, and is the way to do
what you're trying to do:

ul#foo li.first

ul#bar li.last

etc.






-- 
Mark J. Reed <[EMAIL PROTECTED]>
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- 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