CCT286H5 Chapter Notes - Chapter 16: Firefox 3.6

35 views3 pages

Document Summary

Control size of image using width and height properties in css. To align an image, there are two ways to do so: Use the float property on the image itself and/or make an css class for aligning img . align-left { float : left; Use display: block; and set left and right margins to auto to center an image img . align-center { display : block; margin : 0px auto; To set an image as a background, add a background-image element to the css. body { background-image url ( "images/example. jpg" ); Fixed stays in the same position. Scroll moves up and down as the user scrolls up and down the page background-repeat: no -repeat; Background-position - specify where in the browser window the background image should be placed. In this order: background-color, background-image, background-repeat, background-attachment, background-position background: url(example-1. jpg) top left no repeat, url(example-2. jps bottom left no -repeat;

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents