+ 1
Position:static
why we use static position if it give no effect in web page.
1 Answer
+ 9
static is the default value of the position property
imagine for example you apply a selector which select all elements with class "foo" and give it relative position
but now one of those elements need to be static while still needing the foo class (for other reasons)
makes sense?
official docs
https://developer.mozilla.org/en-US/docs/Web/CSS/position