Skip to Content

background color does not appear in my button using addStyleCSS

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

button.png (7.5 kB)
index.png (5.0 kB)
mybutton.png (1.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 16, 2017 at 11:55 AM

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

    !important will force to overwrite custom value.

    Add comment
    10|10000 characters needed characters exceeded