HTML DOM Style Object Background Properties

What are all the background properties available in the dom style object?

Explanation

HTML DOM Style Object Background Properties:
The backgroud property is used to change the background of an element at runtime. The background properties of the style object were listed in the table given below:
syntax:
object.style.property=value;
Background PropertyDescriptionvalues
backgroundspecifies the background properties.color,image,repeat
attachment,position
backgroundAttachmentspecifies whether a background-image is fixed or scrolls with the pagescroll/fixed
backgroundColorspecifies the background-color name,rgb,hex
transparent
backgroundImagespecifies the background-image url,
none
backgroundPositionspecifies the starting position of a background-imagetop left, top center, top right
center left, center center, center right
bottom left, bottom center, bottom right
backgroundPositionXspecifies the x-coordinates of the backgroundPosition propertyleft, center, right
x%,xpos
backgroundPositionYspecifies the y-coordinates of the backgroundPosition propertyleft, center, right
y%,ypos
backgroundRepeatspecifies if/how a background-image will be repeatedrepeat,norepeat,repeat-x,repeat-y

Ask Questions

Ask Question