Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8518945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:06:57+00:00 2026-06-11T06:06:57+00:00

I found a great CSS gradient code generator for a page my friend is

  • 0

I found a great CSS gradient code generator for a page my friend is making, but there are some comments below it that worry me:

/* For Internet Explorer 5.5 - 7 */
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#cccccc, endColorstr=#ffffff);
        /* For Internet Explorer 8 */
        -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#cccccc, endColorstr=#ffffff)";    
        background-color: #CCC;

And in reply:

I strongly recommend against these! They do not act the same, are limited, hurt performance, and can cause layout issues. Simply put, since IE does not support gradients (and many other CSS features natively, without filter), either use images for the same effect (background image) or convince your client that IE users get less of an experience (who seriously cares about gradients vs single colours besides insane ‘designers’?) because their browser just doesn’t match up to what we as developers want. It’s called graceful degradation and IE should not be any exception to that.

So what I don’t know is: Should I suggest they do/do not use any of this code? Is getting IE to use this code useless/hopeless?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T06:06:58+00:00Added an answer on June 11, 2026 at 6:06 am

    The filter stuff is generally regarded as bad practice, and isn’t valid CSS (so your stylesheet will fail validation tests)

    it’s possible to set a background image for the element in question, then IE will fallback to that image if it’s a version that doesn’t support gradients, the beauty of it is that browsers supporting gradients don’t load the background image (well, usually) so performance isn’t impacted negatively.

    Personally, if I were you I’d go for the background image solution, it’s a lot cleaner than the whole “filter” thing, and doesn’t punish people not using Internet Explorer (yay!)

    If you’d like more detail, see here:
    http://css-tricks.com/css3-gradients/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on some code that scrapes a page for two css classes
I found this great code snippet that works wonderfully during circumstances that change a
I found some code on the net to do the popup form in CSS
I found great examples of what Im looking for here : http://hugoduncan.org/post/2010/shell_scripting_in_clojure_with_pallet.xhtml But seems
I found great tool for Image slide show as in the link below http://thiagosf.net/projects/jquery/skitter/
I found this great Tablesorter plugin for jQuery but I can't make it work
I found a great explanation about the new RTTI in Delphi ,but I don't
//UPDATE// I found some code to do paging which I have modified to work
i just found out that Chrome is ignoring CSS min-width: ...; . I can't
Working on a mobile web application, I have found that some Android devices are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.