Examples to work on
Create an external style sheet to go with this simple file.
Type in the following code or create in dreamweaver:
<html>
<head>
<link rel=StyleSheet href="style.css" type="text/css">
</head>
<body>
<center>
<H1>My Heading in GREEN</H1>
</center>
<P>Paragraphs will be <U>indented</U> by the style sheet.</P>
</body>
</html>
Save as style.htm.
Now, create a text file containing the two style sheet rules. (Highlight and copy them from below.) And, then save the file as style.css.
H1 {color: green}
P {text-indent: 3em}
View the file style.htm in the browser and see the changes. Try doing another change in the style sheet and save the changes and view.
Next open the resume1 file. Copy the text into dreamweaver and add header and paragraph markers. Make changes again to the external style sheet and view. Do the same to the resume2.
Now, let's add an internal style sheet.
So, the above example of a two rule style sheet could be coded directly into a <HEAD> section as follows. Try entering this code into resume1 and see how it changes it.
<head>
<STYLE TYPE="text/css">
<!--
H1 {color: red}
P {text-indent: 5em}
-->
</STYLE>
</head>
Now, let's add some other selectors:
P.yellow { background-color: #FFFF66 }
B { color: blue }
B { text-transform: uppercase }
A:link { text-decoration: none }
A:active { text-decoration: none }
A:visited { text-decoration: none }
Text Transform:
Types of fonts:
Text decorations:
Add, separate identities to each paragraph"
P.first { color: green }
P.second { color: purple }
P.third { color: gray }
And your HTML code would look like this:
<P CLASS="first">The first paragraph, with a class name of "first."</P>
<P CLASS="second">The second paragraph, with a class name of
"second."</P>
<P CLASS="third">The third paragraph, with a class name of "third."</P>