CSS, Homework - Week 3
mystyle.css file
- BODY { background : #FFFFCC url(leaves2.gif) repeat-y;
- color : Navy;
- font : normal;
- font-family : "Times New Roman", Times, serif;
- font-weight : bold;
- font-size : medium;
- margin-left : 20%;}
- A {font-size : medium;
- color : Purple;}
- H1 {font-family : Arial, Helvetica, sans-serif;
- font-size : x-large;
- color : Blue;
- text-align : center;}
- LI {text-transform : capitalize;
- text-align : left;}
New class rule in mystyle.css
- td.firstcell {background-color: #FFFFCC; font-style: italic;}
- applied in Template 2
Inline style rule in Template 1
- "....P>When planning a party, the first consideration is the guest list. Who will you invite?/P>
- H2 style="text-transform: uppercase; background: url(confetti.gif);
text-align: center; color: #0000CC;"/H2
Remaining Homework inTemplate 3
- Create a class rule in the embedded style of HTML document
Use Span and Div inline to apply the new class.
- Float and Clear
- Overlapping elements
- Static and resizable borders
Back to TOC