Added by Jacob Farber, last edited by Jacob Farber on Apr 07, 2009  (view change)

Labels:

Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.

DIV P > #id .class INPUT[attribute=value] { font-size: 1em; font-color: #999; }

This whole block of code is called a CSS rule set. It is made up of multiple peices

    encapsulates the entire CSS selector
    encapsulates the entire CSS declaration
DIV P is a contextual selector
> is a parent-child selector
#id is an ID selector
.class is a class name selector
[attribute=value] is an attribute selector
font-size: 1em; is the CSS rule