PrepAway - Latest Free Exam Questions & Answers

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?

PrepAway - Latest Free Exam Questions & Answers

A.
text-shadow: 72pt 0pt 5pt

B.
text-shadow: 5px 1in 0px;

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

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

Explanation:
See http://www.w3.org/TR/css3-text/#text-shadow
72pnt = 1nch
text-shadow: h-shadow v-shadow blur color;
h-shadow Required. The position of the horizontal shadow. Negative values are allowed
v-shadow Required. The position of the verticalshadow. Negative values are allowed
blur Optional. The blur distance
color Optional. The color of the shadow.Look at CSS Color Values for a complete list of possible color
values

3 Comments on “Which CSS style should you use?


Leave a Reply