<< .. Go to : : HOME : : Exercise 9 : : Demo 9a : : Demo 9b : : Demo 9c : : Demo 9d : : Demo 9e : : Demo 9f : : Demo 9g : : Demo 9h : : All Class Demos .. >>

Some Thoughts About Using Divs

Home -|- Natural Flow -|- Fixed Page -|- Flexible Page -|- Maximum Width Page -|- Nav 1 -|- Nav 2 -|- Nav 3
Div One

Tough Cookie

(tuhf kook-e) - noun

Div One has CSS styles for background-color, color for the font, width, padding, border & margin. Plus a font-family.
Div Two
  1. Someone with just the right mix of sweetness and strength
  2. One who doesn't crumble under pressure
Div Two has a CSS style for a background-color and for width.
Div One

Tough Cookie

(tuhf kook-e) - noun

Div Two
  1. Someone with just the right mix of sweetness and strength
  2. One who doesn't crumble under pressure
When we put Div Two inside Div One, it picks up the font-family and the font color that was defined as a style for Div One.

It does NOT pick up the width, padding or border that were defined.