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

  1. Download the [demo] Positioning Properties repository from GitHub. Downloading the repository will get a filed called demo-positioning-main.zip which you need to extract its contents to a folder named demo-positioning-main.
  2. The completed output should look like:
    positioning-01.jpg
    Note: When there are two boxes on the right side of the browser. To see the effect, you will need to scroll your browser. When you first open index.html in your browser these boxes are further down the web page.
  3. The main.css file needs to be updated as follows (you will need to scroll to find the position-css-styles-01.jpg section:
    1. Add the following code to the .relative class style rule:
      position-css-styles-02
      Question: What does thie rule do?
    2. Add the following to the .relative-2 class style rule:
      position-css-styles-03
      Question: What does thie rule do?
    3. Add the following to the .absolute class style rule:
      position-css-styles-04
      Question: What does thie rule do?
    4. Modify the .absolute-2 class style rule to be:
      position-css-styles-05
      Question: What changed?
    5. Add the following to the .fixed class style rule:
      position-css-styles-06
      Question: What does thie rule do?
  4. Now refresh your browser and explore the changes.

Module Home

DMIT1530 Home