htmlcssunderline

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?


Solution

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