PrepAway - Latest Free Exam Questions & Answers

Which value should you use?

You are developing an HTML5 page.
The page includes the following code.

The inner paragraph must be exactly 15 pixels from the top left corner of the outer paragraph.
You set the left style for the inner paragraph to the appropriate value.
You need to set the position property of the inner paragraph.
Which value should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
absolute

B.
static

C.
fixed

D.
relative

Explanation:
http://www.w3schools.com/cssref/pr_class_position.asp

5 Comments on “Which value should you use?

  1. Ken says:

    The answer should be “A” as it has already stated there “the paragraph must be EXACTLY 15 pixels from top left corner”. If “relative”, the position might be changed if there is an extra element inside the outer container.




    0



    0

Leave a Reply