Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is position 'initial' cross-browser - css

I have a css conflict, so I have to go against an absolute positioning property that deals with some class .myclass. But in one case, I want a div with .myclass class to have a no absolute positioning. So I put position: initial, which works in Chrome, but is it cross-browser? I googled it and found nothing really precise.

like image 448
epsilones Avatar asked Mar 11 '13 16:03

epsilones


People also ask

What is initial position in CSS?

position: initial means that it will catch the default(initial) value so it will catch position: static . You have to use position: initial when you have changed the default value of the position of an element and you want to back to the default CSS position property for this element.

What is position property in CSS?

The position CSS property sets how an element is positioned in a document. The top , right , bottom , and left properties determine the final location of positioned elements.

What is position Absolute in CSS?

Definition of CSS position absolute. The CSS absolute is the value for position property. This position property is used to sets how an element is positioned in the document. An element with position: absolute is arranged relative to the nearby positioning element.

What is position sticky?

Sticky positioning is a hybrid of relative and fixed positioning. The element is treated as relative positioned until it crosses a specified threshold, at which point it is treated as fixed positioned.


1 Answers

The default for position is position: static;

like image 176
Andy Avatar answered Oct 23 '22 13:10

Andy