Skip to Content
0

background color does not appear in my button using addStyleCSS

Apr 16, 2017 at 10:24 AM

40

avatar image

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)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Akhilesh Upadhyay Apr 16, 2017 at 11:55 AM
0

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

!important will force to overwrite custom value.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Thank you so much Akhilesh. It worked. :)

Regards

Meenakshi

0