#Suggested structure
3 messages · Page 1 of 1 (latest)
that is actually harder than you'd think https://stackoverflow.com/a/28358684
the trick there is to create a separate "stacking context" in the parent container (the one that is centered), using position: relative, so that the child element can use position: absolute and have that now refer to the parent container instead of the document root regarding coordinate system origin during placement