What is the difference between #
and .
with CSS?
#main
{
background-color: #fff;
_height: 1px; /* only IE6 applies CSS properties starting with an underscrore */
}
.main
{
background-color: #fff;
_height: 1px; /* only IE6 applies CSS properties starting with an underscrore */
}
'#' represents an id. the '.' is a class.
So.. <tagname id="main">
and <tagname class="main">
....
hope that helps.