HTML 5 CSS Background and Images
The teacher demonstrates how to make and reference an external style sheet for student websites.
link href="kdschoc.css" rel="stylesheet" type="text/css"/
The teacher demonstrates the CSS code for commenting out text in a style sheet:
/*comment*/
The teacher demonstrates the CSS code for background attributes such as:background-color: green background-image: url("img_tree.png") background-repeat: no-repeat (OR : repeat-x; OR : repeat-y;) background-position: right top;
Next the teacher demonstrates how to make one pixel gradients in photoshop to use as background images for webpages and how to use the Image size menu and crop tool to resize images.
Image position within a block of text is illustrated next.Students are to make a webpage that references an external style sheet with a color background and repeated background image. The page should contain 4 images aligned nicely within 4 blocks of text.
img src="img_tree.png" align="left"
Evaluation:
3 points -- External style sheet with correctly formatted CSS code with at least one comment
2 points -- Repeatable background image placed appropriately
3 points -- 4 images cropped and sized equally
2 points -- Overall finished look and content of the page
10 points total