Previous Message
Next Message

class selector not working

Sent by Zoe M. Gillenwater on 4 January 2005 17:05


Collin Davis wrote:

>I'm using unordered lists to build a sort of image gallery, and I have
>images where some are larger lengthwise than height, and vice versa.  When I
>use a class selector to specify a different ul size for a specific ul, it
>isn't working.  For some reason, when I use an id selector, it does.  This
>only occurs in FF/Opera - not in IE.
>
>The example page can be seen at:
>http://www.strombergarchitectural.com/cadd_drawings/col_test.php
>  
>

Your "#cad ul" selector is going to take precedence over "ul.side" 
because it is more specific.  To add specificity to your ul.side 
selector, add an id, like this: "#cad ul.side".

Here's how to calculate your selector's specificity:
http://www.w3.org/TR/REC-CSS2/cascade.html#specificity

I agree that you aren't using lists quite correctly, but that's off-topic...

Zoe

-- 
Zoe M. Gillenwater
Design Specialist
Highway Safety Research Center
http://www.hsrc.unc.edu

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Possibly related: