[HN Gopher] Vertical-Align: All You Need to Know (CSS) (2014)
___________________________________________________________________
Vertical-Align: All You Need to Know (CSS) (2014)
Author : not_a_boat
Score : 41 points
Date : 2024-07-05 15:23 UTC (7 hours ago)
(HTM) web link (christopheraue.net)
(TXT) w3m dump (christopheraue.net)
| padolsey wrote:
| This article is ten years old; thought that worth flagging.
| Nowadays I find myself more comfortable using flexbox and grids
| to manage these kinds of layout subtleties. Or when in complete
| dismay, using the `top:50%;left:50%;translate(-50%,-50%)` hack. I
| find inline elements less reliable and less 'knowable',
| especially in responsive layouts. I think I only end up using
| vertical-align in incredibly narrow use-cases. Though curious to
| hear other peoples' experiences.
| BandButcher wrote:
| same experience for me, but cool breakdown and i dig the UX of
| the page
| bobthepanda wrote:
| I think the proliferation of grid and flexbox lets us use
| vertical-align for its original intended purpose, with text.
___________________________________________________________________
(page generated 2024-07-05 23:00 UTC)