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

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

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

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

11 Comments on “Which CSS style should you use?

  1. Candidate says:

    correct – text-shadow: 0px 1in 5px (tested)

    text-shadow: h-shadow v-shadow blur color;

    in question “below”, and “blur 5px”

    What is the correct answer in exam?




    0



    0
    1. kaggelpiep says:

      Do not agree. Answers should be correct, plain and simple. Choosing between two answers which are both wrong on different places is bullshit. None of the wrong answers as any argument over the other




      1



      0
  2. Mandla T Mpofu says:

    The answer is B text-shadow: 5px lin 0px;
    Explanation:
    We set the second argument (vertical) to one inch (1in). Note

    Syntax text-shadow: h-shadow v-shadow blur colour;
    Note: The text-shadow property attaches one or more shadows to text. The property is a comma-separated list of shadows, each specified by 2 or 3 length values and an optional color. Omitted lengths are 0.

    * h-shadow

    Required. The position of the horizontal shadow. Negative values are allowed * v-shadow

    Required. The position of the vertical shadow. Negative values are allowed * blur

    Optional. The blur distance * colour
    Optional. The colour of the shadow.




    0



    0

Leave a Reply