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?

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 lin 0px;

C.
text-shadow: 72pt 5em 0px

D.
text-shadow: 72pt 0em 5px;

Explanation:

Reference:
See http://www.w3.org/TR/css3-text/#text-shadow
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 0r 0px, 72pt, 5px



Leave a Reply 2

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


Alida

Alida

The correct answer should be:
0px 1in 5px
or
0px 72pt 5px

Wayne

Wayne

You are right!