|
|
|
|
|
by quectophoton
850 days ago
|
|
> corresponding to the `vertical-align` CSS property on an `inline`, `inline-block` or `table-cell` box. I can't believe I didn't know about this until now. Before flexbox and grid, I don't know how many times have I written `position: relative;` on parent, and `position: absolute; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%);` on the thing I wanted to put in the middle (vertically and horizontally). |
|