Objective
To learn advanced CSS layout techniques by recreating this
web page.
Discussion
A full background image can be achieved using many techniques. In this approach, we will use a jQuery plugin and some CSS. The original source files also has an option for full image slide shows.
Procedure
Adding a full image background
- download starter files
- download CSS reset starter files
- merge files into one folder
- launch dreamweaver
- open "example.html" (note linked CSS styles, delete unneeded styles)
- window > CSS: link "css/supersized.core.css"
- open "core.html"
- view > code
- copy javascript code from "core.html" (lines 22-34) to "example.html"
- change bg image to "img/bg.jpg"
- save, file > preview in browser (opt+F12 and cmd+F12)
Adding content
- insert > layout objects > div (id="content")
- insert some greek text from www.lipsum.com
- add CSS style "#content" to new style sheet "layout.css" (+):
box: width=400px, margin-left/right=auto, margin-top/bottom=50, padding=20px; background-image=90.png
- change title to "Supersized Test"
- save, file > preview in browser (opt+F12 and cmd+F12)
Grading
- publish file (see separate lesson)
- make a link from your process page to this assignment