Layouts
Box positions
Element types
- block elements:
div, p, ul/ol/li - inline elements:
span, a, img
Normal flow
position: staticRelative position
Absolute position
Fixed position
Floats
Fixed width page
Liquid page
Exercises
- Create an HTML page and a new CSS file, link the CSS file in the HTML page.
- In the page, add 3 paragraphs.
- In the CSS, add 3 styles for relative, absolute, and fixed positions. Apply the styles to the above paragraphs.
- In the page, add 3 more paragraphs. In the CSS, add a float style. Apply the styles to these paragraphs.