The following files are required for this lesson:

Introduction

This walkthrough is done in two parts:

Demo Instructions

You can follow along with your instructor to complete this build and/or you can use this document as a guide in completing the demo build.

Steps – Part 1: Center Page Framework

  1. Download the demo-center-page-framework.zip file and extract its contents to a folder called center-page-framework.
  2. In the css folder add a stylesheet named styles.css.
  3. In this file add the following code:
    center-page-styling.jpg
  4. Open the index.html file and make the following change in the <body> which will use the class created in the stylesheet:
    index-body.jpg
  5. Save this center-page framework as it will be used in future examples, exercises, labs, and assignments.

Steps – Part 2: Demo Page Layout

  1. Download the demo-page-layout.zip file and extract its contents into a folder named demo-page-layout.
  2. The download contains an image of the completed web page:
    page-layout-wireframe.jpg
  3. The steps to achieve the above result require you to make the following additions to styles.css (the comments in the code below are optional but recommended)
    1. Change the font styling:
      font styling
    2. Style the <nav> element:
      nav styling
    3. Style the <header> element:
      header styling
    4. Style the <main> element:
      main styling
    5. Style the <section> element inside the <main>:
      main section styling
    6. Style the <footer> element:
      footer styling
  4. Save and run/refresh index.html in your browser. If your resulting web page does not look like the supplied wireframe, make any necessary code corrections, and refresh your browser.

Exercise Instructions

There is no related exercise for this walkthrough.

Lab

Download the lab-page-layout.zip file from Moodle. The completed web page should look like the compted.jpg file supplied. Submit this as per the instructions on Moodle.

Module Home

COMP1017 Home