What is the default value for the "position" attribute?

Asked

Viewed 1,043 times

5

In CSS, I know the property position can receive the values fixed, absolute and relative . Each has a different effect on the position of the element.

But I was in doubt when I was asked the following way by another programmer:

"If I possess an element with fixed, absolute or relative and want to reset to the value that comes by default in CSS, what would be the value I have to define position?".

So I would like to remove this doubt: What is the default property value position?

2 answers

10


6

Default value (by default) is static.

It is referred to in the MDN and W3C:

position
Value: Static | relative | Absolute | Fixed | inherit
Initial: Static

Browser other questions tagged

You are not signed in. Login or sign up in order to post.