Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reset CSS background gradient

Tags:

css

I'm trying to remove the gradient background color of the caption on my Vaadin panel.

My custom theme extends Valo and I want a flat background (for the CAPTION) and a white font. I've tried the following but it doesn't work.

.v-panel-caption {
  background-color: #157FCC;
  color: #FFFFFF;
}

On my panel, the font is white like I want but the background is still the grey gradient background.

How do I remove that gradient? Thanks!

like image 727
cbmeeks Avatar asked Jan 05 '17 21:01

cbmeeks


2 Answers

CSS background gradient works similarly to background image, to reset that you'll need to set background: none #color;.

Example:

.v-panel-caption {
  background: none #157FCC;
  color: #FFFFFF;
}
like image 185
Stickers Avatar answered Sep 28 '22 02:09

Stickers


gradient is the same thing as an image

.v-panel-caption {
    background-image: none;

}
like image 29
Yevgeniy Afanasyev Avatar answered Sep 28 '22 01:09

Yevgeniy Afanasyev