CSS trick - Remove bottom text line-height only
5 points by yakuza on Nov 6, 2021 | hide | past | web | favorite | 4 comments
just set margin bottom equals to minus half divided font-size. By using this, we will preserve line-height as normal but get rid of unnecessary margin bottom that caused by it. ex: ``` font-size: 3.2rem; margin-bottom: calc(3.2rem / 2 / 2 * -1); ```
 
3 points | dh on Feb 3, 2022[‒]
test
1 point | dh on Feb 3, 2022[‒]
test
2 points | cooldog on Aug 28, 2022[‒]
hey boy whats going on
1 point | danieljkahn 149 days ago[‒]
but does it work?