News for hackers. Stuff that matters.
Re:Vertical-Align: All You Need to Know (CSS) by padolsey on Friday July 05, 2024 @02:50PM (#40885088)
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.
Re:Vertical-Align: All You Need to Know (CSS) by BandButcher on Friday July 05, 2024 @02:55PM (#40885111)
same experience for me, but cool breakdown and i dig the UX of the page
Re:Vertical-Align: All You Need to Know (CSS) by bobthepanda on Friday July 05, 2024 @04:23PM (#40885677)
I think the proliferation of grid and flexbox lets us use vertical-align for its original intended purpose, with text.
Re:Vertical-Align: All You Need to Know (CSS) by spankalee on Friday July 05, 2024 @08:32PM (#40887281)
Flexbox is great, but it doesn't eliminate the need to understand line layout sometimes. There's almost alway text on the page somewhere, even if the container it's in was laid out with flex or grid.