What is the standard method of positioning elements on a page?

1

What is the standard method of positioning elements on a page?

I ask because I have seen in some material that by default the elements on a page ( HTML ) have the property position defined as relative , but searching I can not find a material to confirm this thesis (I took a look at the W3S and nothing).

    
asked by anonymous 02.10.2014 / 13:01

1 answer

1

The default method is static , which positions the element in order of appearance.

The other methods are:

  • absolute : Positions the element according to an ancestor defined with the relative property
  • fixed : Positions the relative element to "canvas."
  • relative : The difference between this method and static is that you can use the left, top properties.
  • initial : Points to the initial value of the property, in the case static
  • inherit : Set as the same property as the parent element.

Source: w3schools

    
02.10.2014 / 13:24