1

I want to use a diagonal gradient in my background.

I have read this, and I found that it has just only horizontal gradient and vertical gradient in IE.

Is it possible to make the gradient in IE show in the diagonal like Firefox?

yoozer8
  • 7,361
  • 7
  • 58
  • 93
user508397
  • 11
  • 1
  • 2

2 Answers2

1

You can do it using CSS, but it's kind of a hacked together solution involving two layers. You can read about the details of it here.

Community
  • 1
  • 1
yoozer8
  • 7,361
  • 7
  • 58
  • 93
0

Yes, you have to use a background-image though so there may be a limited element size depending on how much you want a page to cost, and you will need to use a separate image.

HTML5 brings along SVG images though which are scalable and take up little space.

J V
  • 11,402
  • 10
  • 52
  • 72
  • Thank you. But does it possible not to use background-image? – user508397 Nov 15 '10 at 15:16
  • No, in fact the javascript gradient you linked to isn't valid javascript, and will only work on later versions of IE as opposed to the majority of browsers, which follow the rules. There may be a CSS3 gradient property but almost nothing supports CSS3 at the moment. – J V Nov 15 '10 at 15:26