PrepAway - Latest Free Exam Questions & Answers

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

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?

A. absolute

B. static

C. fixed

D. relative

Explanation:

absolute: The element is positioned relative to its first positioned (not static) ancestor element.

Reference: CSS position Property

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


Leave a Reply