background-attachment
background
background-repeat
background-position
Answer is Wrong!
Answer is Right!
The correct answer is: A. background-attachment
The background-attachment
property specifies whether the background image scrolls with the page or stays fixed in place.
scroll
: The background image scrolls with the page.fixed
: The background image stays in the same position on the page, even when the page scrolls.
The background
property is used to set the background color, image, or repeat style of an element.
background-color
: The background color of an element.background-image
: The background image of an element.background-repeat
: The repetition style of the background image.
The background-repeat
property specifies how the background image is repeated.
repeat
: The background image is repeated both horizontally and vertically.repeat-x
: The background image is repeated horizontally only.repeat-y
: The background image is repeated vertically only.no-repeat
: The background image is not repeated.
The background-position
property specifies the position of the background image.
top
: The background image is positioned at the top of the element.bottom
: The background image is positioned at the bottom of the element.left
: The background image is positioned at the left of the element.right
: The background image is positioned at the right of the element.center
: The background image is centered horizontally and vertically.x
: The background image is positioned at a specific horizontal position.y
: The background image is positioned at a specific vertical position.x-offset
: The background image is positioned at a specific horizontal offset from the left edge of the element.y-offset
: The background image is positioned at a specific vertical offset from the top edge of the element.