Today I Learned

2023/09/22

css

How to position an element relative to its parent without affecting the flow of other sibling elements:

you’re most likely interested in position: absolute which will position an element relative to a container. By default, the container is the browser window, but if a parent element either has position: relative or position: absolute set on it, then it will act as the parent for positioning coordinates for its children.

https://stackoverflow.com/a/105035/6571327

See also: https://developer.mozilla.org/en-US/docs/Web/CSS/position#relative