Preperation
In class: Style your assignment from last week
- Use CSS to add styles to your page:
- Color the h1 tag blue
- Color the first h2 tag red
- Use a sans-serif font on the whole page
- Give the table some borders
- Make a 200 x 200 pixel div with a black background and centered white text that reads
"2002"
- Center that box in the browser
Check Your Understanding
- What is the difference between the color and background-color values?
- What is a CSS selector?
- How do you differentiate between element, class, and id selectors in CSS?
- What's the difference between the border, padding, margin, and outline CSS properties?
MSU Bozeman
Montana State University
358 Barnard Hall
P.O. Box 173880
Bozeman, MT 59717-3880
Email
daniel.defrance@montana.edu