Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

filter: progid:DXImageTransform.Microsoft.gradient is not working in ie7

I want to apply a gradient background color to my div.

For IE I have used the property:

filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fad59f', endColorstr='#fa9907') 

It's working in IE9 and IE8. But not working in IE7.

What should I do to see in IE?

Here is a JSFiddle: http://jsfiddle.net/xRcXL/2/

like image 934
Pavan Kumar Avatar asked Aug 20 '11 11:08

Pavan Kumar


1 Answers

Having seen your fiddle in the comments the issue is quite easy to fix. You just need to add overflow:auto or set a specific height to your div. Live example: http://jsfiddle.net/tw16/xRcXL/3/

.Tab{     overflow:auto; /* add this */     border:solid 1px #faa62a;     border-bottom:none;     padding:7px 10px;     background:-moz-linear-gradient(center top , #FAD59F, #FA9907) repeat scroll 0 0 transparent;     background:-webkit-gradient(linear, left top, left bottom, from(#fad59f), to(#fa9907));     filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#fad59f, endColorstr=#fa9907);         -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#fad59f, endColorstr=#fa9907)"; } 
like image 68
tw16 Avatar answered Sep 30 '22 18:09

tw16