Property | Values | Description |
background |
background-color background-attachment background-image <div style="background-image:url(http://www.jacknilan.com/spinner.jpg); background-repeat:no-repeat; width:200px; height:200px;"> Note : You have to use background-repeat with this background-position background-repeat |
Sets the background properties for an object
|
background-color | hex-rgb-name or transparent | Sets the background color of an element |
background-attachment | scroll fixed |
Sets whether a background image is fixed or scrolls with the rest of the page |
background-image | url | Sets an image as the background |
background-position | top left top center top right center left center center center right bottom left bottom center bottom right x-% y-% x-pos y-pos |
Sets the starting position of a background image |
background-repeat | repeat repeat-x repeat-y no-repeat |
Sets if / how a background image will be repeated |
Below is a sample table with some of these commands used. Note I had to use the url function for the back-ground image but I could just have set my background in the normal way. right mouse click and view source to see code.
Jack |
Below is an example of how I could set a border by setting the background for a paragraph.