Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Css: -webkit-border-radius for Internet explorer?

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.

like image 611
olidev Avatar asked Jan 21 '23 11:01

olidev


2 Answers

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.

like image 187
David Thomas Avatar answered Jan 24 '23 02:01

David Thomas


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.

like image 38
Chris Heald Avatar answered Jan 24 '23 01:01

Chris Heald