Separating Content from Presentation
Techniques
This example controls the format of headings, body elements and content.
/* CSS Document */
body {
background-color: #FFFFFF;
font-size: .8em;
font-family: Arial, Verdana, Helvetica, sans-serif;
color: #000000;
margin: 0px;
}
h1 {
color: #990000;
font-size: 1em;
font-weight: bold;
}
h2 {
color: #000000;
font-size: 1em;
font-weight: bold;
}
#content {
font-size: 1em;
color: #000000;
padding-right: 10%;
padding-left: 190px;
}
To link to a style sheet named access.css add this tag in the <head> section
of your html document:
<link href="access.css" rel="stylesheet" type="text/css">
