250+ TOP MCQs on Backgrounds, Borders and Drop Shadow and Answers

CSS Multiple Choice Questions on “Backgrounds, Borders and Drop Shadow”.

1. Which of the following property sets the background image to scroll or not to scroll with its associated element’s content?
a) background-scroll
b) background-attach
c) background-attachment
d) background-allowance

Answer: c
Clarification:

Syntax: background-attachment: scroll | fixed | inherit

2. Which of the following property sets an element’s background color?
a) background-image
b) background-color
c) background-colors
d) background-position

Answer: b
Clarification:

Syntax: background-color: color | transparent

3. Which of the following property defines the color of an element’s right border?
a) border-right-colors
b) border-right-color
c) border-right
d) border-color

Answer: b
Clarification:

Syntax: border-right-color: color | transparent

4. Which of the following property defines the space between cells in a table?
a) auto
b) border
c) spacing
d) border-spacing

Answer: d
Clarification:

Syntax: border-spacing: non-negative length(s) | inherit

5. Which of the following property defines the visual style of up to four different sides of a border?
a) border-color
b) border-img
c) border-visual
d) border-style

Answer: b
Clarification:

Syntax: border-style: style

6. Which of the following property defines in a shorthand form the width, style, and color for the top border of an element?
a) border-style
b) border-height
c) border-width
d) border-top

Answer: d
Clarification:

Syntax: border-top: border-width border-style border-color;

7. Which of the following property sets the shadow for a box element?
a) shadow
b) set-shadow
c) canvas-shadow
d) box-shadow

Answer: b
Clarification:

Syntax:box-shadow: none | inherit

8. Which of the following property defines a shadow effect for text?
a) box-shadow
b) img-shadow
c) text-shadow
d) none of the mentioned

Answer: d
Clarification: The shadow effects are applied in the order specified and may overlay each other, but they will never overlay the text itself. Each shadow effect must specify a shadow offset horizontally and vertically and may optionally specify a blur radius and a shadow color.

  250+ TOP MCQs on Table Graphs, 2D Transforms, Boxing of Images & Constrained Images

9. Which of the following property defines a shadow color for the right and bottom edges of a scroll bar?
a) scrollbar-darkshadow
b) scrollbar-shadow-color
c) scrollbar-darkshadow-color
d) none of the mentioned

Answer: c
Clarification:

Syntax: scrollbar-darkshadow-color: color

10. Which of the following property defines a color for the right and bottom edges of a scroll bar.
a) scrollbar-color
b) scrollbar-darkshadow-color
c) scrollbar-shadow
d) scrollbar-shadow-color

Answer: d
Clarification:

Syntax: scrollbar-shadow-color: color

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top