PdfPrep.com

Which CSS style should you use?

You are developing an HTML5 page that includes several paragraph elements.

You have the following requirements:

Add a drop shadow that is one inch below the text in the paragraph

Set the radius of the drop shadow to five pixels

You need to style the paragraphs to meet the requirements.

Which CSS style should you use?
A . text-shadow: 72pt 0pt 5pt
B . text-shadow: 5px 1in 0px;
C . text-shadow: 72pt 5em 0px
D . text-shadow: 72pt 0em 5px;

Answer: D

Explanation:

D is the most correct.

Reference: CSS Text Module Level 3

http://www.w3.org/TR/css3-text/#text-shadow

Note:

All options are incorrect nearest correct answers are B or D.

#obj {text-shadow: <x-offset> <y-offset> <blur-radius> <color>; }

<x-offset> +n right -n left

<y-offset> +n bottom -n top

1 inch below means <y-ffset> is 1in or 72 pt

Hence actually answer must be

0px, 1in, 5px

or

0px, 72pt, 5px

Exit mobile version