4

I want to set border for a div,

Using: -webkit-border-radius working fine on Chrome but it is not working for Internet explorer, triple versions: ie 6, 7 and 8 :D

Is there any other attribute like -webkit-border-radius specifying for IE?

Thanks in advance.

BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356
olidev
  • 20,058
  • 51
  • 133
  • 197
  • possible duplicate of [Is there a way to get border-radius and gradient backgrounds in IE?](http://stackoverflow.com/questions/2969772/is-there-a-way-to-get-border-radius-and-gradient-backgrounds-in-ie) – Paul D. Waite Apr 04 '11 at 21:38

4 Answers4

4

CSS properties that begin with a hyphen are vendor-prefixes:

  • -webkit (for Webkit browsers, Chrome and Safari)
  • -o (for Opera)
  • -moz (for Firefox and, I think, for the Gecko rendering engine)
  • -ms (for IE)
  • -khtml (for Konqueror)

These prefixes are ignored by the other browser engines.

-webkit-border-radius is targeted to Webkit's implementation of the border-radius property. So far as I know border-radius won't be implemented by IE until IE 9.

David Thomas
  • 249,100
  • 51
  • 377
  • 410
3

Try using CSS3Pie. It very easily lets you adapt CSS3 decorators for IE.

I did a small demo of it with Sass a few days ago, if you'd like to check it out in IE.

Chris Heald
  • 61,439
  • 10
  • 123
  • 137
2

IE has yet to implement the border-radius CSS property. I believe with IE9 they will be implementing it. As for alternative options and an explanation from the team themselves, here is a link:

EDIT: IE9 does supports "border-radius".

Rounded Corners in Internet Explorer

Here is another SO link as well that has more detail:

Support for “border-radius” in IE

One more, here is an official MSDN blog posting discussing the topic:

The CSS Corner: About CSS corners

Community
  • 1
  • 1
jaywon
  • 8,164
  • 10
  • 39
  • 47
0

I don't know about you, but I tested border-radius:15px in IE9, it works :)

Braden Best
  • 8,830
  • 3
  • 31
  • 43