Background-image with background-gradient


I'm trying to add a logo to one button that is styled with gradient, but the background-image "delete" the background color...

Here is the fiddle: and below is the current tet .css.

.rounded-orange-button {
text-align: center;
color: #FFFFFF;
display: inline-block;
border-radius: 2px;
line-height: 27px;
width: 200px;
position: relative;
background: #FF9100;
background: -webkit-gradient(linear, 0 0, 0 100%, from(#FF9100) to(#FA6800));
background: -webkit-linear-gradient(top, #FF9100, #FA6800);
background: -moz-linear-gradient(top, #FF9100, #FA6800);
background: -o-linear-gradient(top, #FF9100, #FA6800);
background: linear-gradient(to bottom, #FF9100, #FA6800);
-pie-background: linear-gradient(to bottom, #FF9100, #FA6800);

    background-image: url('');

Thanks to help me :-)

Problem courtesy of: clement


The graident is actually a background image as well. Luckily you can, in modern browsers, have multiple background images.


background-image: url(''), linear-gradient(to bottom, #FF9100, #FA6800);

And you also need to do the same for the vendor specific gradients.


See this link for compatibility table: background-image MDN

Solution courtesy of: Mathias


There is currently no discussion for this recipe.

This recipe can be found in it's original form on Stack Over Flow.