+ 1

How to modify the height of the space between the text and the underline bar in CSS?

Hi everybody. I have in my code CSS : h4{ text-decoration: underline; } how to increase or reduce the space between the text and the underline bar? Thank you for your answers!

27th Apr 2018, 9:34 PM
Romain Puech
Romain Puech - avatar
3 Respostas
+ 4
Yeah. Sometimes with html you need to use your imagination
28th Apr 2018, 4:35 PM
Toni Isotalo
Toni Isotalo - avatar
+ 3
By using border h4{ border-bottom: 1px solid black; display: inline-block; padding-bottom: 5px; }
27th Apr 2018, 10:05 PM
Toni Isotalo
Toni Isotalo - avatar
0
hum... you think I have to take a border instead of the text-decoration... it's a good hack! thank you!
28th Apr 2018, 9:32 AM
Romain Puech
Romain Puech - avatar