Looking for a solution to achieve rounded corners in Internet Explorer? Consider using . In my CSS file named template.css, I have included the following code which is loaded when the page loads on Joomla 1.5.
.form_field {color:#222 !important; border:2px solid #333; background:#f4f4f4;-webkit- border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px; color:#fff; padding:2px 0px 2px 0px; position:relative; z-index:99999;
behavior: url(./PIE.htc);
In the root of my website, you can find PIE.htc and PIE.php files.
Upon inspecting the 'view source' generated in IE 9 with rendering set to IE 8 mode, all necessary CSS files are being loaded properly except for the CSS behavior.
<link rel="stylesheet" href="/sos/plugins/system/rokbox/themes/light/rokbox-style.css" type="text/css" />
<link rel="stylesheet" href="/sos/components/com_gantry/css/gantry.css" type="text/css" />
<link rel="stylesheet" href="/sos/components/com_gantry/css/grid-12.css" type="text/css" />
<link rel="stylesheet" href="/sos/components/com_gantry/css/joomla.css" type="text/css" />
...
I've tried troubleshooting and even placed the behavior code in its own CSS file at the root level but still no success. It seems like either Joomla is interfering or there might be a conflicting issue.
To make it work with Joomla and CSS3PIE, create a new CSS file named PIE.CSS at the site root with the following content:
@charset "utf-8";
/* CSS Document */
.YOURCLASSNAME {border-radius: 5px !important; color:#fff !important; padding:2px 0px 2px 0px !important; position:relative !important; z-index:99999 !important;
behavior: url(./PIE.php) !important;}
Add a link to PIE.CSS in your template's index.php file:
<link rel="stylesheet" type="text/css" href="./PIE.css" />
Apply the class "YOURCLASSNAME" to the elements you wish to style, such as form fields in an article. This method should hopefully resolve the issue. :-)