CASCADING  STYLE  SHEETS
CASCADING  STYLE  SHEETS


Week Five


One of the items we're learning this week is how to use CSS Shorthand for our style declarations. Since I'm using an Embedded Style Sheet, you can see my code when you view the source of this page.

We're also learning more about Margins, Borders, Padding, and Indents, as well as the DISPLAY selector for changing Block Level and Inline elements.

Centered heading with 20 pixels of padding, a 45 pixel margin, and a dotted border on all 4 sides.

red bullet

This looks like a list but it's actually a bullet image before a <h3> heading.


red bullet

The image has 5 pixels of padding on the top to add space between lines.


red bullet

The heading is set to Display Inline to prevent it from moving to the next line.


red bullet

I also used a line break between each heading and the image that follows.


red bullet

When we learn about Float, I hope I can align the text with center of the image.


The first line of this paragraph is indented by 20 pixels. The first line of this paragraph is indented by 20 pixels. The first line of this paragraph is indented by 20 pixels. The first line of this paragraph is indented by 20 pixels. The first line of this paragraph is indented by 20 pixels.


The first line of this paragraph has a negative indent of 20 pixels. The first line of this paragraph has a negative indent of 20 pixels. The first line of this paragraph has a negative indent of 20 pixels. The first line of this paragraph has a negative indent of 20 pixels.


Index Week 1 Week 2 Week 3 Week 4 Week 5 Week 6

Copyright  Peggy Sue  2004