Barrie North wrote:
I need some help, what is the difference between:
table.module
Specificity: 0,0,1,1
and
.module
Specificity: 0,0,1,0
Is table.module just more specific or is there more going on?
The former will only select tables with the class name "module". The
latter will select any element with the class name "module".
e.g.
<table class="module">
<p class="module">
<div class="module>
<em class="module">
They will all be selected by .module, but only the table will be
selected by table.module
Similar question between:
a.contentpagetitle:link
Specificity: 0,0,2,1
That will select
<a href="#" class="contentpagetitle">link</a>
and
.contentpagetitle a:link
Specificity is the same, but will select differently:
<p class="contentpagetitle">
<a href="#">link</a>
</p>
(The <p> element could be any ancestor element)
--
Lachlan Hunt
http://lachy.id.au/
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************