Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Border radius does not work with I.E.?

Border radius does not work with I.E.?

Problem

Css

border-bottom: 1px solid silver;
background-color: #000;
background: rgb(51,51,51); /* Old browsers */
background: -moz-linear-gradient(top, rgba(51,51,51,1) 0%, rgba(153,153,153,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(51,51,51,1)), color-stop(100%,rgba(153,153,153,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(51,51,51,1) 0%,rgba(153,153,153,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(51,51,51,1) 0%,rgba(153,153,153,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(51,51,51,1) 0%,rgba(153,153,153,1) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(51,51,51,1) 0%,rgba(153,153,153,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#333333', endColorstr='#999999',GradientType=0 ); /* IE6-9 */
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;

Chrome and FireFox Output:

I.E. Output:

What is the problem about this? I cant find any think. How can I fix it.

Thanks.

Problem courtesy of: AliRıza Adıyahşi

Solution

The filter is the problem:

filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#333333', endColorstr='#999999',GradientType=0 ); /* IE6-9 */

Using a filter to provide a background gradient will make border-radius ineffective. So it's either the round corners or the fancy background on IE9. I'm sorry. :)

... just kidding. You can use another box shadow!

box-shadow: inset 0 -1em 1em -0.5em rgba(0, 0, 0, 0.8);

Adjust that until you get something that looks like the gradient.

Solution courtesy of: Ryan

Discussion

View additional discussion.



This post first appeared on CSS3 Recipes - The Solution To All Your Style Problems, please read the originial post: here

Share the post

Border radius does not work with I.E.?

×

Subscribe to Css3 Recipes - The Solution To All Your Style Problems

Get updates delivered right to your inbox!

Thank you for your subscription

×