CSS positioning related properties

CSSWeb DevelopmentFront End Technology

The positioning related properties in CSS are:

Relative Positioning

Relative positioning changes the position of the HTML element relative to where it normally appears. So "left:20" adds 20 pixels to the element's LEFT position.

Absolute Positioning

An element with position: absolute is positioned at the specified coordinates relative to your screen top-left corner.

Fixed Positioning

Fixed positioning allows you to fix the position of an element to a particular spot on the page, regardless of scrolling. Specified coordinates will be relative to the browser window.

Updated on 30-Jul-2019 22:30:22