Aalok Amalmani
Aalok Amalmani

Reputation: 57

Cannot remove gradient

I'm trying to remove gradient overriding this:

  -webkit-linear-gradient(right,#1a5cce, #00c7ce 85%);
background: -moz-linear-gradient(right,#1a5cce, #00c7ce 85%);
background: -o-linear-gradient(right,#1a5cce, #00c7ce 85%);
background: linear-gradient(right,#1a5cce, #00c7ce 85%);

I tried with:

background: -webkit-linear-gradient(none);
                    background: -moz-linear-gradient(none);
                    background: -o-linear-gradient(none);
                    background: linear-gradient(none); 

I'm not a css expert, what I want to do is remove completely the gradient, is this possible?

Upvotes: 0

Views: 155

Answers (2)

Rafiqul Islam
Rafiqul Islam

Reputation: 961

Gradient background reset that you'll need to set

background: none #color;

Example:


.your-class {

  background: none #157FCC;
  color: #FFFFFF;

}

Upvotes: 0

Vadim Ovchinnikov
Vadim Ovchinnikov

Reputation: 14012

Just set background: initial. All CSS properties allow initial value to revert their value to initial state. Use this property what you don't want to bother about particular property defaults.

Also you can use background: none for background property.

Upvotes: 2

Related Questions