100 likes | 229 Views
Creating a Webpage with External CSS. MMP 100 – 141 Class 5 BMCC. Preparation. Initial work: http:// dl.dropbox.com/u/7783459/mmp100-class5-exercise/initial.html Final work : http:// dl.dropbox.com/u/7783459/mmp100-class5-exercise/final.html
E N D
Creating a Webpage with External CSS MMP 100 – 141 Class 5 BMCC
Preparation • Initial work: http://dl.dropbox.com/u/7783459/mmp100-class5-exercise/initial.html • Final work: http://dl.dropbox.com/u/7783459/mmp100-class5-exercise/final.html • Download starter kit: http://dl.dropbox.com/u/7783459/mmp100-class5-exercise/starter.zip • Css reference: http://www.w3schools.com/Css/default.asp
Positioning and Sizing Elements Absolute position means this element is positioned relative to the <html> container
Background Images horizontal align color image repeat #header { background: #8C9777 url(images/page_header_bg.jpg) center top no-repeat; height: 300px; } vertical align #main { background: #FBFBE5 url(images/container_bg.gif) left top; padding-top: 5px; padding-bottom: 10px; } #main { background: #FBFBE5 url(images/container_bg.gif) left top repeat-y; padding-top: 5px; padding-bottom: 10px; } #footer { background: #FBFBE5 url(images/footer_bg.jpg) center top no-repeat; height: 166px; }
Top & Left Nav Create mouse-over effects (change background color and font color Use image as list point discs
Finalizing • Define general styles for fonts, colors, etc. • Finetune element positioning, padding, spacing, etc. • See final CSS: http://dl.dropbox.com/u/7783459/mmp100-class5-exercise/class-5.css