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 :)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.