Which of the following CSS Property Specifies the left offset of a positioned element?

right
left
bottom
up

The correct answer is: B. left

The CSS left property specifies the horizontal offset of an element from its parent element. It can be used to position an element to the left, right, center, or any other position within its parent element.

The right property specifies the right offset of an element from its parent element. It is the opposite of the left property.

The bottom property specifies the bottom offset of an element from its parent element. It is the opposite of the top property.

The up property is not a valid CSS property.

Here is an example of how the left property can be used to position an element:

css
.my-element {
position: absolute;
left: 10px;
}

This code will position the element with the class my-element 10px to the left of its parent element.

Exit mobile version