What is the default value of the attribute "position" DIV?

I'm just wondering what could be the "position" attribute of the default DIV? How does a DIV have a display property like BLOCK, what is the default property for the position attribute?

+68
html css
May 01 '13 at 10:56
source share
7 answers
position: static; 

The default position is static for any html element, unless explicitly specified.

+82
May 14 '13 at 11:09
source share

static always the starting value of the CSS position property, no matter which tag.

Literature:

+10
May 01 '13 at 10:58
source share

I am sure this is position: static;

+4
May 01 '13 at 10:58
source share
 position: static; 

is the default position for any html element.

+4
May 01 '13 at 11:22
source share

If it was not inherited from some of his parents, the default is static

+3
May 01 '13 at 10:58
source share

Its static. proof of its static positioning.

HTML:

 <div class="position">&nbsp;<div> <div style="height:100px;">&nbsp;</div> <div class="noposition">&nbsp;<div> 

CSS:

 div.position { width:100px; height:100px; background:red; left:10px; top:100px; position:static; } div.noposition{ width:100px; height:100px; background:blue; left:10px; top:100px; } 

This shows that two divs with separate classes, one without any positioning and one with a static position, positions the Div as static.

+3
May 14 '13 at 11:21
source share

position: static;

The default value for the div element.

+1
Jul 30 '15 at 11:32
source share



All Articles