Question

I'm using the following CSS to achieve a rounded border on my DIV:

border: 1px solid #999; 
border-radius: 6px; 
-ms-border-radius: 6px; 
-moz-border-radius: 6px; 
-webkit-border-radius: 6px;

But in IE 6/7/8, even though I'm including the IE specific radius, it is not displaying a rounded DIV border (it's displays a square border).

Any ideas why only IE 6/7/8 doesn't display a rounded border?

Was it helpful?

Solution

As of IE8, IE doesn't support the CSS3 border-radius property. Not sure what you saw that said it did. You can use images, javascript, or many other tricks to round corners in IE.

OTHER TIPS

there is no -ms-border-radius internet explorer doesn't support it.

The 'newest' thing microsoft has to say about rounded corners is this old table+images hack titled 'Staying Ahead of the Curve' ;-)

IE does not support border-radius.

From IE8 Expert Zone Chat:

Chris Wilson [MS] (Expert):

Q: [9] Any plans to support CSS' border-radius, eg. -ms-border-radius:5px; ? Firefox and Safari have -khtml- and -moz- implementations which we can use to do rounded corners without images or sprites, and improve performance ie. http://preview.tinyurl.com/9y3tfn/

A: border-radius is high on the wish list, but will not be in IE8.

While I realise that an answer's been accepted, I wanted to suggest -if you need further advice/support/guidance- that you have a look at Curvy Corners; they have a JS library with examples.

As, of course, do MooTools, albeit with a third-party (so far as I could tell) module from phat fusion. And jQuery has its own third-party corner plugin, from methvin.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top