3

here my CSS to get the gradient working in any browser, inlcuding IE up to version 9 (IE9):

.wrapper { 
    background:-moz-linear-gradient(top , #0f1925, #000) repeat scroll 0 0 transparent;                                      
    background:-o-linear-gradient(top , #0f1925, #000) repeat scroll 0 0 transparent; 
    background:-webkit-linear-gradient(top , #0f1925, #000) repeat scroll 0 0 transparent; 
    filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr='#0f1925', endColorStr='#000', GradientType=0); 
}

It won't work for IE 10/11 though.

Any ideas?

Thanks in advance

Adrift
  • 58,167
  • 12
  • 92
  • 90
carherlo
  • 45
  • 2
  • 6
  • I've had some issues with IE and gradients too. I've used this website which helped alot: http://www.colorzilla.com/gradient-editor/ Good luck! – Gooey Dec 30 '13 at 16:23

2 Answers2

5

Internet Explorer 10+ uses the standard syntax:

background-image: linear-gradient(to top, #000, #FFF);
Sampson
  • 265,109
  • 74
  • 539
  • 565
1

DX filters are no longer supported for IE 10+ in standard mode. Use linear-gradient.

Gras Double
  • 15,901
  • 8
  • 56
  • 54
Alex
  • 11,115
  • 12
  • 51
  • 64