0

I'm refactoring some pages put together by an old colleague and I can understand why he's left the company. I'm looking through his code and he's added -moz-border-radius:10 to an inline style. Okay this is great for Chrome and Firefox but how can I get this to work for IE? Any ideas anyone?

Thanks

Mark?

Mark Sandman
  • 3,213
  • 12
  • 37
  • 58

3 Answers3

0

IE9 support border-radius property, as well as Fx and Chrome. Use unprefixed name.

Support for "border-radius" in IE

For older browsers that do not support even prefixed names, you can only use hacks as tables with images or so.

Community
  • 1
  • 1
Tomasz Kowalczyk
  • 10,385
  • 6
  • 53
  • 66
0

IE 9, supports CSS 3 border-radius. If that's not what you're looking for, find htc files that implements border-radius.

Related post:

Community
  • 1
  • 1
Buhake Sindi
  • 85,564
  • 27
  • 164
  • 223
0

you should put all the vendor prefixes first, then the CSS3 equivalent. In your case it would looke like this:

-webkit-border-radius:10px;
-moz-border-radius:10px;
border-radius:10px;

Internet Explorer 6,7,8 won't round corners, but this is ok from a progressive enhancement point of view. If it isn't ok from the client's point of view, you can either include a CSS based on CSS conditional statements and use a sprite with rounded corners or use a JavaScript fallback like http://css3pie.com/.

Older versions of Firefox, Chrome, Safari or Opera will round corners because of the vendor prefix.

Good luck.

Francisc
  • 72,090
  • 61
  • 175
  • 271