I've read a couple of answers on this topic, for example: Position absolute but relative to parent, but I still don't understand why the position of the ancestor element must be either position: relative
or position: absolute
.
Why is an element with position: static
ignored by position: absolute
?