user1641508 user1641508 - 1 year ago 85
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?

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download