168k views
1 vote
HELP PLEASE HELP!

Read the following block of CSS code, and then answer the question.

body
{
position: relative;
left: 50px;
top: 50px;
}

What effect would this code have on the display of a box?

All content would be placed 50 pixels to the left of the current box.

The current box would be located 50 pixels to the left of the page border.

The current box would be located 50 pixels to the left of the next page element.

The current box would be located 50 pixels to the left of the first textual element.

2 Answers

4 votes

Answer:

It's the Frist one

Step-by-step explanation:

User SvinSimpe
by
5.2k points
3 votes

Answer:

Correct answer is All content would be placed 50 pixels to the left of the current box.

Step-by-step explanation:

In Css position property is used to position an element in page. Relative positions assigns element a new position in reference to its original position. In this case after applying css new position would be 50 px to left. As the style is applied on body tag so the css position transformation will affect all page.

User Ccamacho
by
5.7k points