+ 1

Position:static

why we use static position if it give no effect in web page.

17th Feb 2018, 10:27 AM
Bhavya Kishor Gatya
Bhavya Kishor Gatya - avatar
1 Odpowiedź
+ 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
17th Feb 2018, 10:32 AM
Burey
Burey - avatar