by namuol · 9y ago · 0 comments
What framework?
.center-the-stuff {
display: flex;
align-items: center;
justify-content: center;
} .parent {
position: relative;
}
.child {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}If I fire up a reasonable layout system (Xaml for example) which is completely foreign, it's trivial to do there.
I can't understand why html/CSS makes it so hard.