How to make CSS Position property

Posted by

How to make CSS Position property

Position property specifies the best type of positioning method used for an element such as static, relative, fixed or absolute.

The position Property:

Position property specifies the positioning method for using an element.

There are about different position values:

  • static
  • relative
  • fixed
  • absolute

Elements are positioned using top, left, bottom, right properties. These properties which will not work unless position property is set first. They work differently depends on position value.

div.static {

position: static;

border: 3px solid #73AD21;

}

Leave a Reply

Your email address will not be published. Required fields are marked *