<< .. Go to : : HOME : : Exercise 8B : : Demo 8B.1 : : Demo 8B.2 : : Demo 8B.3 : : Demo 8B.4 : : Demo 8B.5 : : Demo 8B.6 : : Demo 8B.7 : : Demo 8B.8 : : 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.