Home > UI/UX Development > CSS > IE-8 Border Radius

IE-8 Border Radius

This post was most recently updated on August 5th, 2024

How to use border radius for IE-8?

HTML

We can use the ie-css3 file which is a .htc(HTML Component file) file. Just put the file in root folder and can be used as follows:

div {
height: 100px;
width: 100px;
-webkit-border-radius: 10px ;
-moz-border-radius: 10px ;
border-radius: 10px ;
behavior: url(‘ie-css3.htc’);
background-color: #0072AE;
background: #0072ae; /* Old browsers */
}

 Note: Please provide the relative/ absolute path to ie-css3.htc file.

You can view a demo here.

 

WordPress

Using the above solution in WordPress does not work. Why? Well while accessing the .htc file the server cannot find content type of the file that can be set through a php file and then included in the header as:

div{
behavior: url(/absolute-path-to-ie-css3.php);
}

OR

Simply you can use WordPress plugin WEN’s IE CSS3 Support.

Hope either of the solution helps! 🙂

 

This Article is TAGGED in , , , , , . BOOKMARK THE permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">