Monday, March 22, 2010

Difference between '.' and '#' in CSS

You use ID for a single item. You write this using "#".

You use CLASS for multiple items. You write this with ".".

Valid:
#Menu table{ border-spacing:0px; padding:0px 0px 0px 0px; }
.Menu .Submenu table{ ... }

No comments:

Post a Comment