position property in CSS

CSS position property is used to specify how and where the element should be rendered.
  • static - this is the default value
  • relative - Element is positioned relative to normal position
  • absolute - Element is positioned relative to first positioned ancestor element. Following elements appear in layput as if absolute element does not exist.
  • fixed - Element is positioned relative to browser window. Even if you scroll, element will not move.
  • sticky - Element position toggles between relative and fixed based on scrolling offset.

Web development and Automation testing

solutions delivered!!