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:
http://www.w3schools.com/cssref/pr_class_position.asp
I think D is the right answer. It is relative to the outer paragraph and not absolute to the page.
A is correct.
‘relative’ positioning is relative to normal position of element
‘absolute’ positioning is relative to first positioned ancesor
outer paragraph is a first positioned ancesor (position is not static)
+1 for colins for correct explanation.
Hi All,
Can any one share the latest dumps of 70-480. I need to give exam in february
Thanks in advance.
Regards,
Sohail