Download this project with source code samples
Objectives
At the end of this lesson, you will be able to:
- Apply the CSS box model to position and size XHTML elements
Instructions
Instructions: Use document-level styling to create the following pages.
Practice A
- Write your class schedule on one line like this:Web Site Design Street Law Investments Intro To Java Programming
- Place each of your classes in its own div like this:
<div>Web Site Design</div> <div>Street Law</div> <div>Investments</div> <div>Intro To Java Programming</div>
- Give each div a green border that is 2 pixels wide.
- There should be 15 pixels between the text and the green border.
- There should be 50 pixels between each class.
- Name your file side_a.html.
Practice B
- Create a row of colored divs. Each one should be 50 pixels high.
- A red div that is 50 pixels wide should be on the very left.
- On the right side of the red div, there should be a blue div that is 200 pixels wide.
- On the right side of the blue div, there should be a green div that is 300 pixels wide.
- Name your file side_b.html.
Practice C
- Download your school’s logo from its website.
- Put the logo 100 pixels down and 50 pixels from the left of the window.
- Place your school’s name 100 pixels to the right of the image.
- Under both of these, make a red div that is 30 pixels high and 100% wide. Hint: Use clear:both; to place this div on a new line.
- Name your file side_c.html.
Screenshot

More screenshots and source code for this project are available when you purchase the curriculum.
Rubric
| Component | Possible Points | Score |
| Side A | 3 | |
| Side B | 3 | |
| Side C | 3 | |
| Total Score | 9 |