Note: the following material is from an older, outdated version of the web design curriculum pack. Please read about the revised and updated version of our Introduction to Web Design Curriculum.
At the end of this lesson, you will be able to:
- Apply the CSS box model to position and size XHTML elements
Instructions: Use document-level styling to create the following pages.
- 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.
- 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.
- 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.
For full projects and source code, download the updated version of our Introduction to Web Design Curriculum.