Transparent image pattern over color in CSS

Arronoevedive

New Member
I'm trying to add a simple .png pattern over a color gradient in CSS. Here is the markup:HTML:\[code\]<div class="pattern"> <div class="widget_heading"> <h4>Feed</h4> </div></div>\[/code\]CSS:\[code\].pattern { background: url(../img/leatherpattern.png) repeat; }.widget_heading { display:block; border:1px solid #3F943A; height:40px; border-top-left-radius: 5px 5px; border-bottom-right-radius: 5% 0%; border-top-right-radius: 5px; background: #3c8522; /* Old browsers */ background: -moz-linear-gradient(top, #3c8522 0%, #599d40 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#3c8522), color-stop(100%,#599d40)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #3c8522 0%,#599d40 100%); background: -o-linear-gradient(top, #3c8522 0%,#599d40 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #3c8522 0%,#599d40 100%); /* IE10+ */ background: linear-gradient(to bottom, #3c8522 0%,#599d40 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3c8522', endColorstr='#599d40',GradientType=0 ); /* IE6-9 */ }\[/code\]I have no idea why it's not showing up overtop, but it is showing up. Any help would be appreciated, thanks!http://jsfiddle.net/j4JjW/3/
 
Back
Top