Jump to content

[SOLVED] Microsoft Gradient Works in IE, but not in FF


EPCtech

Recommended Posts

<body style="filter:progid:DXImageTransform.Microsoft.Gradient(endColorstr='#C0CFE2', startColorstr='#FFFFFF', gradientType='0');">

 

This is the code I have to make a gradient on my website. Can anyone tell me why this doesn't work in Firefox, and how to get it to work in Firefox?

 

Thanks,

En-Psyche :)

It simply is just not standard CSS. IE has alot of extras that go against standards. The problem is most other browsers don't support them, making them practically useless. As far as I know there is no equivalent for Firefox. I suggest you create an image of the gradient and use that instead.

The title says it all. Microsoft gradiant, Firefox. Firefox isn't Microsoft.

 

Actually, besides the fact that filters are IE only, it's not good to use any microsoft filters if you can help it - they use a lot of system resources, as they recalculate every time the cursor is moved or the screen is scrolled.

 

Use a 1px x height/width image instead and follow regular, widely supported, CSS techniques.

 

For the most part that is right, but actually it's better to use something 5px, as it takes more system resources to repeat a 1px image than it does a 5px image, so the 5px image actually speeds up your processing time, as the difference in downloading time is almost nil.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.