Contents Index Topic Contents | ||
Previous Topic: background-position Next Topic: border |
background-repeat
Description
Determines how the background image of an element is repeated.
Syntax
{ background-repeat: repeat | repeat-x | repeat-y | no-repeat}
Remarks
The attribute only has an effect if a background image has been specified.
A value of repeat means that the image is repeated both horizontally and vertically. The repeat-x (repeat-y) value makes the image repeat horizontally (vertically), to create a single band of images from one side to the other. With a value of no-repeat, the image is not repeated.
This attribute is not inherited.
Example
In the following example, the image will only be repeated vertically.
BODY {background: red url(pendant.gif); background-repeat: repeat-y;}Applies To
A, ADDRESS, B, BIG, BLOCKQUOTE, BODY, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, DD, DFN, DIR, DIV, DL, DT, EM, FIELDSET, FORM, H1, H2, H3, H4, H5, H6, HTML, I, IMG, INPUT, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OL, P, PLAINTEXT, PRE, S, SAMP, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP, INPUT type=button, INPUT type=file, INPUT type=reset, INPUT type=submit, INPUT type=text, INPUT type=image, INPUT type=checkbox, INPUT type=radio, INPUT type=password
Scripting Property
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.