exam questions

Exam 70-480 All Questions

View all questions & answers for the 70-480 exam

Exam 70-480 topic 1 question 45 discussion

Actual exam question from Microsoft's 70-480
Question #: 45
Topic #: 1
[All 70-480 Questions]

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
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
absolute: The element is positioned relative to its first positioned (not static) ancestor element.
Incorrect Answers:
D:
relative: The element is positioned relative to its normal position, so "left:20" adds 20 pixels to the element's LEFT position.
Reference: CSS position Property
http://www.w3schools.com/cssref/pr_class_position.asp

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Dreamchaser1980
4 years, 6 months ago
It should be D. relative, in case of absolute the inner p will be positioned relative to the HTML body tag.
upvoted 1 times
alexivv
4 years, 5 months ago
that's not right, "outer" p has position relative, so "inner" p would be relative to its parent, not body tag
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...