Position in datail

Please explain in detail types of positios and use of position

1 Like

Hi Amaragarwal7, We have received your question. Please allow us some time to get back to you. Thank you for your patience!

@Amaragarwal7
The position property specifies the type of positioning method used for an element.

There are five different position values:

static
relative
fixed
absolute
sticky

Elements are then positioned using the top, bottom, left, and right properties. However, these properties will not work unless the position property is set first.

image

Why we use position property: -

The position CSS property sets how an element is positioned in a document. The top , right , bottom , and left properties determine the final location of positioned elements.

image

2 Likes