Top

Using Rainbow Layouts

Rainbow layouts help you track the positioning of different html elements on your own.


  1. Download this zipped file (rainbows.zip).
  2. Unzip the two files and put them in a folder called rainbows.
  3. Open the two files in notepad++ and open index.html in your browser. Note the starting positions of the various containers.
  4. Start by leaving the <header> as it is and changing the position of the other container in the order they appear in the flow of the HTML. (nav, section, article ...)
  5. Start with <nav>. Add "float: left" to layout.css, save, go to your browser and refresh. Note the change of positions.
  6. Now experiment with the different positional properties:
    • float: left / right / none
    • position: absolute / relative / fixed / static
    • clear: both / left / right