cancel
Showing results for 
Search instead for 
Did you mean: 

background color does not appear in my button using addStyleCSS

meenakshi_raina
Advisor
Advisor
0 Kudos

Hi All,

I am trying to add a background color to my button. I have done the following code.

in my index.html file -

in my view, i have added this code -

Now, my button has italic font, but the background color does not appear in my button. I tried changing few colours, but it is not helping.

Kindly help.

Thanks,

Meenakshi

Accepted Solutions (1)

Accepted Solutions (1)

former_member227918
Active Contributor
0 Kudos

try this: background-color: #5cbae6 !important;

!important will force to overwrite custom value.

meenakshi_raina
Advisor
Advisor
0 Kudos

Thank you so much Akhilesh. It worked. 🙂

Regards

Meenakshi

Answers (0)