Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change width of underline in css

Tags:

html

css

I have a cell in a table like this:

<td><b>Grand Total</b></td>

I need to give it a line under the text "Grand Total". I used text-decoration: underline;. It worked well, but I need to change the color and thickness of the underline. I used text-decoration-color: red; to add color but it doesn't work. How can I solve this problem?

like image 788
Jibin Avatar asked Nov 29 '22 00:11

Jibin


1 Answers

use border-bottom define color cording like this

b {
    border-bottom: 1px solid red;
    padding: 0 0 4px;
}
<td><b>Grand Total</b></td>
like image 124
lalit bhakuni Avatar answered Dec 09 '22 19:12

lalit bhakuni