Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to apply border radius in IE8 and below IE8 browsers?

Tags:

css

I would like to know how to apply border-radius to IE8 and below IE8 browsers.

I know that border-radius is a HTML5 feature and IE8 doesn't support it.

I found that by using .htc we can achieve this but by using htc I am encountering the problem of black background.

I am unable to overcome this problem.

Is there any other way of applying border-radius to IE8? If so can anyone explain me how?

like image 682
user2594152 Avatar asked Jul 24 '13 09:07

user2594152


People also ask

How do you give the border-radius at the bottom?

CSS Syntaxborder-bottom-left-radius: length|% [length|%]|initial|inherit; Note: If you set two values, the first one is for the bottom border, and the second one for the left border. If the second value is omitted, it is copied from the first. If either length is zero, the corner is square, not rounded.

Which CSS type is used to set the border-radius?

The border-radius CSS property rounds the corners of an element's outer border edge. You can set a single radius to make circular corners, or two radii to make elliptical corners.

Why do we use border-radius?

The border-radius property defines the radius of the element's corners. Tip: This property allows you to add rounded corners to elements!


2 Answers

Option 1

http://jquery.malsup.com/corner/

Option 2

http://code.google.com/p/curved-corner/downloads/detail?name=border-radius-demo.zip

Option 3

http://css3pie.com/

Option 4

http://www.netzgesta.de/corner/

Option 5

See this question

EDIT: Option 6

https://code.google.com/p/jquerycurvycorners/

like image 55
daniel__ Avatar answered Sep 20 '22 10:09

daniel__


Firstly for technical accuracy, border-radius is not a HTML5 feature, it's a CSS3 feature.

The best script I've found to render box shadows & rounded corners in older IE versions is IE-CSS3. It translates CSS3 syntax into VML (an IE-specific Vector language like SVG) and renders them on screen.

It works a lot better on IE7-8 than on IE6, but does support IE6 as well. I didn't think much to PIE when I used it and found that (like HTC) it wasn't really built to be functional.

like image 30
Glitch Desire Avatar answered Sep 23 '22 10:09

Glitch Desire