CSS-position property

 position:static;

Element cannot be move from their position, that is element get fixed

 position:relative;

It helps move an element with respect to its original position.

position:fixed:

It moves the element with respect to the browser windows.

The position of the element remains fixed even if we scroll the web page.

The next element present after the position element takes the place of the element leaving no gap.

position:absolute;

It moves the element with respect to the nearest positioned ancestor element.

Next element will take the gap.

z-index;

It is used to position an element along the z axis.

It works only positioned on elements.

Comments

Popular posts from this blog

Generative AI Model for text summarization

maintext/ react

Resume description for AI/ ML Developer