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, technically, #advert is the same as saying *#advert. Putting the
td in the front just tells the browser you're specifically aiming for a
td element. With ids, there's no real difference.
I believe CSS authors get into doing that because of classes. With
classes, it can make a BIG difference.
--
http://www.mozilla.org/products/firefox/ - Get Firefox!
http://www.mozilla.org/products/thunderbird/ - Reclaim Your Inbox!
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
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/