Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS underlining

To underline text in CSS we can do:

h3 {text-decoration:underline;}

However this only underlines the text enclosed in h3 tag. What if want the underline to go across the page?

Thanks

like image 688
dublintech Avatar asked Apr 27 '26 06:04

dublintech


2 Answers

Then you wouldn't have an underline, you'd have a border on the element.

border-bottom: 1px red solid;
like image 190
Quentin Avatar answered Apr 28 '26 18:04

Quentin


You could try using a border:

h3 { border-bottom: 1px solid }
like image 31
drmonkeyninja Avatar answered Apr 28 '26 19:04

drmonkeyninja



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!