How to modify, only via CSS, a color already defined in HTML?

Asked

Viewed 35 times

1

I am trying to modify a color in a text, marked by the tag "U" with the color already defined in html.

is like this in html:

<u> <font color="#0000c0">somente no seu e-commerce</font> </u>

I tried it this way in CSS:

u{ color:rgb(20,20,20) !important; }

But it does not accept the color, I believe that because it is defined in the source code.

The important detail, I do not have access to modify the HTML, because it is generated by web software. Every layout modification has to be done by CSS only.

1 answer

2


Try u > font { color: corDesejada !important; }

  • Excellent! It worked. Thank you

  • Arrange. Harry Carvalho

Browser other questions tagged

You are not signed in. Login or sign up in order to post.