1D0-720 · Question #65
In CSS3, which property is used to apply shadow to text?
The correct answer is A. text-shadow. text-shadow is the CSS3 property specifically designed to add shadow effects to text, accepting values for horizontal offset, vertical offset, blur radius, and color (e.g., text-shadow: 2px 2px 4px #000). box-shadow (B) applies shadows to the outer box/element container, not…
Question
In CSS3, which property is used to apply shadow to text?
Options
- Atext-shadow
- Bbox-shadow
- Cborder-shadow
- Dshadow
How the community answered
(30 responses)- A87% (26)
- B7% (2)
- C3% (1)
- D3% (1)
Explanation
text-shadow is the CSS3 property specifically designed to add shadow effects to text, accepting values for horizontal offset, vertical offset, blur radius, and color (e.g., text-shadow: 2px 2px 4px #000). box-shadow (B) applies shadows to the outer box/element container, not the text characters themselves. border-shadow (C) is not a real CSS property - borders use border and related properties. shadow (D) is also not a valid CSS property. Memory tip: The property name mirrors exactly what it does - match the target to the prefix: text-shadow for text, box-shadow for boxes.
Topics
Community Discussion
No community discussion yet for this question.