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 8786605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:40:41+00:00 2026-06-13T21:40:41+00:00

CSS: .silver { color: #636363; border: solid 1px #9C9C9C; background: #D6D6D6; /*important part*/ background:

  • 0

CSS:

.silver {
color: #636363;
border: solid 1px #9C9C9C;
background: #D6D6D6;

/*important part*/
background: -webkit-gradient(linear, left top, left bottom, from(#E8E8E8), to(#BABABA));
background: -moz-linear-gradient(top,  #E8E8E8,  #BABABA);
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#e8e8e8', endColorstr='#bababa')";
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#e8e8e8', endColorstr='#bababa');

padding: 2px 5px 2px 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
margin-right: 5px;
font-size: 95%;
}

This works when I apply to class to a input / submit button, but the gradients do not display when I apply the class to a span or div. How can I get gradients working in IE9?

  • 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-13T21:40:43+00:00Added an answer on June 13, 2026 at 9:40 pm

    When IE9 was released, it was supposed to herald a new dawn for IE; a version that supported all the new shiny browser features that everyone else had been supporting for years.

    The good news is that for the most part it succeeded in this.

    The bad news is that they dropped the ball when it came to CSS gradients. IE9 doesn’t support them. But is also doesn’t support the old IE6/7/8 hack to get gradients working via the filter property.

    There is a solution. You can render an SVG image into the background, which means that you can simply create an SVG with a gradient and you’re sorted. But wait, it’s not as simple as that; if you’ve got the filter property there to support IE8 and friends, you actually need to get rid of it for the SVG trick to work with IE9.

    It all gets a bit complicated at this point. You need conditional comments, separated stylesheets for different IE versions, or some other method of hacking around the problem.

    Or you can use CSS3Pie. This is a little Javascript utility that adds support for a number of CSS features to various versions of IE. One of those features is CSS background gradients.

    With CSS3Pie, you can simply use the standard CSS background property, and the gradients will work in all IE versions exactly as they do in other browsers.

    It works on all versions of IE from 6 to 9, so in addition to not having to mess around with the SVG hack I described earlier, you can also drop that messy filter style too. Its a win all round. I’d recommend that as the solution for you.

    But, if you decide you’d rather do it the hard way, with an SVG gradient for IE9, here’s a link to a site that will generate the CSS code for you: http://www.colorzilla.com/gradient-editor/ Tick the ‘support IE9’ checkbox to see the code you’ll need, but also note the caveat text and further instructions that appear at the same time.

    Hope that helps.

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

Sidebar

Related Questions

Css border-bottom: 1px solid silver; background-color: #000; background: rgb(51,51,51); /* Old browsers */ background:
CSS: .container { margin-left: 15px; width: 10px; background: #FFFFFF; border: 1px solid #CAD5E0; padding:
CSS table tr {border-bottom:1px solid #008999} HTML <table width=100% cellspacing=0 cellpadding=0> <thead> <tr> <th
CSS code body { background-attachment: scroll; background-clip: border-box; background-color: #ececec; background-image: none; background-origin: padding-box;
HTML: <div class=cell-container> <img src=image.png class=thumbnail /> </div> CSS: .hover { background-color: silver; }
CSS border radius works fine, but it's now revealing a white background. (I'd prefer
TL;DR: I'm using jQuery .css() to set the background color of an element, but
CSS .arrow { background:url(images/arrow.png) center left no-repeat; padding-left:23px; padding-right:10px; border-right:0px solid #e6e6e6; margin-right:10px; }
<!DOCTYPE html> <html> <head> <title>MyTitle</title> <style type=text/css> body { background-image:url('images/my.png'); /*width:100%;*/ height:100%; background-repeat:no-repeat; background-size:100%;
I am trying to set the background color of the page at yumdom.com to

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.