Contents Index Topic Contents | ||
Previous Topic: availWidth Next Topic: background |
background
Description
Sets or retrieves the separate background attributes (backgroundColor, backgroundImage, backgroundRepeat, backgroundAttachment, and backgroundPosition) at once.
Syntax
object.style.background[ = background]
Remarks
The property is a shorthand ("composite") property. Separate properties can be used to specify each of the individual properties, but in many cases it is more convenient to set them in one place using this composite property. Possible values here include all of the possible values for each of the individual properties.
For more information on supported colors, see Color Table.
All individual background properties not set by the composite background property will be set to their initial values.
The property has read/write permission.
Applies To
HTML Tags 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, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, 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 Scripting style CSS Attribute
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.