Pages

Friday, March 15, 2013

The id Selector

The id selector is used to specify a style for a single, unique element.
The id selector uses the id attribute of the HTML element, and is defined with a "#".
The style rule below will be applied to the element with id="para1":

#para1
{
text-align:center;
color:red;
}


Remark Do NOT start an ID name with a number! It will not work in Mozilla/Firefox.

0 comments:

Post a Comment