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

  • Home
  • SEARCH
  • 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 8872565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:15:01+00:00 2026-06-14T18:15:01+00:00

When I try to style a button in IE using a gradient and a

  • 0

When I try to style a button in IE using a gradient and a border radius I find that effectively the corners get squared off because the gradient is applied to the background.

All other browsers appear to be able to handle this without an issue.

I have demostrated this here if you open this is in FireFox for example you will see rounded corners and the gradient contained within the border if you open this in Internet explorer you will not.

Obviously I have exaggerated the radius etc to make the effect clear. Using the following CSS:

.form_Wrapper{
    width: 250px;
    height: 250px;
    background-color: #32b1d2;
}

.form_Submit{
    /*positioning*/
    position: absolute;
    top: 100px;
    margin-left: 16px;
    margin-top:20px;
    padding: 3px 10px;
    width: 90px;height:40px;
    /*background*/
    background: #808080;
    background: -webkit-gradient(linear, left top, left bottom, from(#a5a5a5), to(#808080));
    background: -webkit-linear-gradient(top, #a5a5a5, #808080);
    background: -moz-linear-gradient(top, #a5a5a5, #808080);
    background: -ms-linear-gradient(#a5a5a5, #808080);
    background: -o-linear-gradient(#a5a5a5, #808080);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#a5a5a5', endColorstr='#808080');
    zoom: 1;
    /*border*/
    border: 2px solid #a5a5a5;
    border-color: #a2a2a2;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
    /*text*/    
    opacity: 1.0;        
    color: #fff;
}
​

There must be some trick to applying the gradient to area inside the border rather than to the containing background. But I have been unable to research a solution to this.

  • 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-14T18:15:02+00:00Added an answer on June 14, 2026 at 6:15 pm

    -ms-linear-gradient won’t do anything as IE skips straight from the proprietary filter in IE9 to the standard linear-gradient in IE10.

    The proprietary filter doesn’t behave precisely the same as the background, it just operates on the entire element without necessarily interacting with other CSS properties.

    CSSPIE provides VML (similar to SVG) workarounds for lack of CSS support. Using it may degrade performance if you end up using it on lots of elements.

    You can also use images, but maintenance gets messy. Want to change a color? You have to recreate the image. And the end user needs to re-download the image file every time it changes. It may be small, but it’s a noticeable flicker.


    Takeaway: The simplest, cleanest, least hair-pulling-out solution is to provide a fallback solid color for non-CSS3 compliant browsers. If people want the “more beautiful web” MS talks about, they’ll use browsers that inherently support it rather than one that requires these hacks.

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

Sidebar

Related Questions

I have Buttons attached to elements on the modules entrypoint html page using RootPanel.get(foo).add(button)
I have a button that I am using on a toolbar that has a
I recently stumbled upon a solution that emulates the android button style through XML
I have a problem with my style sheet that I am using to create
i try to givee style via GridView.css into Masterpage my masterpage includes 3 pages
I've got question about wpf xaml style definitions. When I try to set style
I try to build a metro-style-app with Javascript and when I run the Windows
I show UIAlertView with UIAlertViewStylePlainTextInput style. Then I try to validate for empty field
Part of our website is protected with .htaccess style password protection. When you try
Is there a reason why I can do this: document.getElementById('gridID').style.background='blue'; but when I try

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.