Your code is successfully changing the colour of the <u>
element, but you can’t see any effect because the <font>
element does not have color: inherit
(and there is no text outside of the <font>
). It has its own colour and does not use the <u>
‘s colour at all.
To change that, you need to target the font element.
font {
color: rgb(20, 20, 20);
}
<u> <font color="#0000c0">somente no seu e-commerce</font> </u>
There is no need for the rule to be !important
. There’s no CSS of a higher specificity to hammer.
4
solved How to modify only via CSS a color already defined in HTML?