VCA222 Web Design

Project: Page Layout using CSS

Assignment

Using CSS, create an original web page by adding a multi-column structure and design to the provided mark-up.

Procedure

  1. Open the provided html file and save it to your computer.
  2. Place the file in a folder called yourName_layout.
  3. Here are some images you can use in a zip file.
  4. Open the html file in a text editor or Dreamweaver. Note the structure: the page is divided into 5 sections called "site ID," "main," "sideBar," "navigation," and "footer." These represent the primary parts of this web page. When designing a web page from scratch you have some latitude as to which elements to include and where they could go. However, for this project you must follow the prescribed structure:
  5. The first step then is to set up the columns with style sheets. While there are numerous ways to do this, for this project I want you to use the method described below:
  6. Whenever we are dealing with three columns, we need to combine two of the columns into a single element that we can float either left or right. In this case, we will wrap both main and sidebar in a div tag with an id name of wrapper (so put <div id="wrapper"> in front of <div id="main"> and put the closing </div> tag after the Sidebar's closing </div>).

  7. Now we can add some styles. Either create a style section in the head, or create a separate style sheet document. Write the following style rules:
  8. body {
    width: 800px;
    }

    #wrapper {
    float: right;
    width: 640px;
    }

    #wrapper #main {
    float: left;
    width: 430px;
    }

    #wrapper #sideBar {
    float: right;
    width: 200px;
    }

    #navigation {
    float: left;
    width: 150px;
    }

    #footer {
    clear: both;
    }

     

    This will create three columns in the middle with a ten pixel gap between each.

    The widths specified above are not magical sizes; you can customize your layout and make the columns any size you want with a few qualifications:

  9. Customize your layout. Even though we now have three columns, a site ID and a footer, it's pretty dull. Write styles to add some "flair." Possibilities include:

Hints

Deliverables

  1. Print out both a copy of the HTML/CSS code (from Text Edit) and a version of the formatted page (from a browser), staple them together and give them to me (make sure you put your name on them).
  2. Give me a copy of the HTML file.

Deadline

Week 6: Due, beginning of class.

Class schedule

Syllabus

Student resource index