02.12 - CSS

I. The CSS Box Model:

Every HTML element can be divided into the following components:
1. content
2. margin
properties:
- margin
- margin-top (etc)
3. border
properties:
- border-width
- border-top-width (etc)
- border-style
- border-top-style (etc)
- border-color
- border-top-color (etc)

4. padding
properties:
- padding
- padding-top (etc)

Setting width and height

II. CSS Positioning

1. divs, ids, classes
2. display property: inline vs block
3. position property
- static
- relative
- absolute
- fixed
4. left
5. right
6. top
7. flow and float

III. Inheritance, parent - sibling, etc

IV. Homework:

Create a basic HTML page that includes nine images and some text. Create at least four CSS styles to make it look as different as possible, where one of the four forms a grid, without using tables. Save each version as a separate HTML document. Be ready to turn in to me next Thursday.