3 ms·
.centered { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } now just put it in a relatively positioned container
by grumblestumble 11y ago
.centered {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
now just put it in a relatively positioned container and you're done. i thought this was common knowledge by now, i haven't used `table-cell` in years.
- inopinatus 11y agoIsn't this the construct that exhibits blurring problems due to subpixel alignment in Gecko / Webkit ?