6.HTML POSITION element .ABSOLUTE , FIXED , STICKY.Web development course #htmlbasic #sticky

In this video , we are learning about basics of web development and html positioning element like position absolute , fixed and sticky .
The Position property in CSS specifies the positioning for an HTML element or entity. The element’s position can be set by specifying the top, right, bottom, and left properties. These specify the distance of an HTML element from the edge of the viewport. To set the position by these four properties, we have to declare the positioning method. There are five positioning properties available in CSS:

Fixed: The position of the element will be positioned relative to the viewport.
Static: The elements will be positioned according to the normal flow of the page.
Relative: The element remains in the normal flow of the document but left, right, top, and bottom affects.
Absolute: The position of the element will be relative to the closest positioned ancestor.
Sticky: The element with position: sticky and top: 0 played a role between fixed & relative based on the position where it is placed.
#htmllayout#div #section #header #nav #footer #Nepalideveloper #webdevelopmentinnepali
Web design
Be the first to comment