code:Etc, etc... For all basic elements in an (X)HTML page. This is one area where I've found firefox to have more annoying defaults than IE. I see no reason not to have these set to zero to begin with.body
{
margin: 0;
padding: 0;
}
div
{
margin: 0;
padding: 0;
}
code:Any CSS tag can have multiple classes, you just type the tag type, a ".", and then the name you want to call that CSS class. If you see the "#", that's the symbol for an id definition, which, as fugu noted, can only appear once (it's useful for split one-off structures, like a div for a header, one for a left nav-column, and one for the main page area).IN CSS FILE:
For default, non-bold paragraphs:
p
{
font-weight: normal
}
For bold paragraphs:
p.bold
{
font-weight: bold
}
IN HTML FILE:
...
<p>Normal paragraph</p>
<p class="bold">Bold paragraph (in display, not content)<p>
code:It's<p>This is a paragraph.</p>
code:, not©
code:©