user1641508 user1641508 - 1 month ago 5x
CSS Question

Changing Underline color

I have this code here:

echo "<u><font color='red'><br>$username</font></u>";

Firstly, as you can see, it's underlined (< u >). Second, all text is all red. Well is there anyway to leave the text ($username) red but the underline black?


No. The best you can do is to use a border-bottom with a different color, but that isn't really underlining.