0

I can't seem to override the user agent CSS settings, even when I use !.

I have buttons as links and use AngularJS. I added a screenshot below:

Notice how even with ! I cannot override the background-color.

I am using sass and haml for my view.

enter image description here

Satchel
  • 16,414
  • 23
  • 106
  • 192

1 Answers1

1

none is not a valid value for background-color, but it is a valid value for the background shorthand. The mixup comes from it being seemingly natural to think that the none value in the shorthand sets background-color, but it actually refers to the background-image property.

Use background-color: transparent instead.

Is background-color:none valid CSS?

Community
  • 1
  • 1
user2943490
  • 6,900
  • 2
  • 22
  • 38