How can you position a background image to be centered both horizontally and vertically within its container?
A). background-position: center center;
B). background-position: center;
C). background-position: top left;
D). background-position: bottom right;
How would you repeat a background image only horizontally along the x-axis?
A). background-repeat: repeat-y;
B). background-repeat: repeat-x;
C). background-repeat: no-repeat;
D). background-repeat: repeat;
How do you specify an image as a background in CSS?
A). background: url('image.jpg')
B). background-image: url('image.jpg')
C). background-color: url('image.jpg')
D). image-background: url('image.jpg')
What is the purpose of the radial-gradient() function in CSS?
A). To create a linear gradient
B). To create a radial gradient
C). To set a solid color
D). To add shadows to an element
What is the purpose of the background-attachment property in CSS?
A). To adjust the size of the background image
B). To control whether the background image scrolls with the content
C). To add padding to an element
D). To create a shadow effect on an element
How do you create a repeating background pattern that tiles an image vertically but not horizontally?
A). background-repeat: repeat-y;
B). background-repeat: repeat-x;
C). background-repeat: no-repeat;
D). background-repeat: repeat;
What does the background-position property in CSS control?
A). The size of the background image
B). The position of the background image within its container
C). The color of the background
D). The repeat behavior of the background image
How can you make a background image stay fixed while the content scrolls on the page?
A). background-attachment: fixed;
B). background-attachment: scroll;
C). background-attachment: local;
D). background-attachment: inherit;
What CSS property is used to create a linear gradient background?
A). background-gradient
B). linear-gradient
C). gradient-color
D). background-color
What is the purpose of the background-size property in CSS?
A). To set the color of the text
B). To adjust the size of the background image
C). To add padding to an element
D). To create a shadow effect on an element