Recommended css entry
great doco on using efficient CSS selectors, focus on rules with overly qualified selectors:
Identifier selectors are unique by definition. Including a tag or class, qualifiers simply add redundant information that needs to be evaluated unnecessarily.
, id main, , , div ( ). : css , jQuery ..
Re pixelistik , div#main , #main - , , , , , , CSS, , .
Both are correct.
div#mainmore specific than #mainthat which means that styles defined with the first selector will override the characters of the second.
Here's a good introduction to the CSS spec: http://htmldog.com/guides/cssadvanced/specificity/