Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft Exam 70-480 Topic 5 Question 2 Discussion

Actual exam question for Microsoft's 70-480 exam
Question #: 2
Topic #: 5
[All 70-480 Questions]

You are developing an HTML5 page that has an element with an ID of logo. The page includes the following HTML.

Logo:

You need to move the logo element lower on the page by five pixels.

Which lines of code should you use? (Each correct answer presents part of the solution. Choose two.)

Show Suggested Answer Hide Answer
Suggested Answer: A, B

* style.position = "relative";

The element is positioned relative to its normal position, so "left:20" adds 20 pixels to the element's LEFT position.

* For relatively positioned elements, the top property sets the top edge of an element to a unit above/below its normal position.

Example: Example

Set the top edge of the image to 5px below the top edge of its normal position:

img {

position: relative;

top: 5px;

}


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

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

Contribute your Thoughts:

Currently there are no comments in this discussion, be the first to comment!


Save Cancel