At 05:24 AM 6/5/2005, Ian Sweeney wrote:
td#advert {width: 234px;}
Could that rule not simply be
#advert {width: 234px;}
Since #advert should refer to a unique identifier, why does the selector
specify the 'td'?
At 06:10 AM 6/5/2005, Neal Watkins wrote:
td#advert is has a higher specificity
Yes it could -
The difference would be specificity
td#advert is has a higher specificity and in case there is a conflict
(it does happen) it will apply over #advert
http://www.w3.org/TR/REC-CSS2/cascade.html#specificity
Neal
> The first chapter of 'Eric Meyer on CSS' listing 1.1 has the follow
Ian Sweeney wrote:
The first chapter of 'Eric Meyer on CSS' listing 1.1 has the following CSS
rule
td#advert {width: 234px;}
Could that rule not simply be
#advert {width: 234px;}
Since #advert should refer to a unique identifier, why does the selector
specify the 'td'?
Ian Sweeney
Well,
The first chapter of 'Eric Meyer on CSS' listing 1.1 has the following CSS
rule
td#advert {width: 234px;}
Could that rule not simply be
#advert {width: 234px;}
Since #advert should refer to a unique identifier, why does the selector
specify the 'td'?
Ian Sweeney
--
No virus found in this ou