| tag. | | | | repeat incorrectly on larger monitors. This tag allows |
| Background-image | | | | you to specify that a background image might repeat |
| Usage:background-image : (URL);background-image : ; | | | | only on the x or y axis, or not repeat at all. |
| Write URL to a specific image to display as the | | | | Use this property on block-level elements as well. |
| background for your element. | | | | Examples of background-repeat. |
| Test this out by putting the following code in your | | | | Background-positionusage:background-position : |
| document: | | | | value;background-position: vertical horizontal; |
| This paragraph uses the background-image element | | | | Sets the location of the background image with one |
| to create a grid pattern behind the paragraph. | | | | of these values: |
| e.g.style="background-image : url( | | | | • top |
| Examples of background-image. | | | | • bottom |
| Background-attachmentusage:background-attachment | | | | • left |
| : fixed;background-attachment : scroll; | | | | • right |
| If you use a background attachment of fixed, the | | | | • center |
| background image will be held in one place like a | | | | • length |
| watermark. Using the scroll type will set the image to | | | | • percentage |
| scroll with the rest of the page. This is the default | | | | Examples of background-position. |
| and standard for background images. | | | | Once you understand all the different CSS elements |
| Examples of background-attachment. | | | | you can use to affect the background of your pages |
| Background-repeatusage:background-repeat : | | | | and elements, you can combine them into one CSS |
| repeat;background-repeat : inherit;background-repeat : | | | | element. The "background" element. |
| repeat-xbackground-repeat : | | | | Background |
| repeat-ybackground-repeat : no-repeat | | | | Usage:background : color url(URL) attachment position |
| The default behavior of Web backgrounds is to | | | | repeat; |
| repeat endlessly. Thus background images often | | | | Follow the instructions for the above elements to |
| have to be very large to insure that they don't | | | | define your backgrounds as you would like them. |