Encountering an issue with IE9 where the border-radius property is not working in one div, while functioning perfectly in other divs.
Browser Comparison:
- IE9
- IE10, Chrome, FF
Html Code:
<article id="main-login">
<div class="radius-10 shadow"></div>
<div id="area-login" class="radius-10 shadow">
<h2>Sign In</h2>
<p><input id="user-user" class="radius-10" type="text" placeholder="Username" required/></p>
<p><input id="user-pass" class="radius-10" type="password" placeholder="Password" required/></p>
<p><input id="do-login" type="submit" value=""/></p>
<small>Not a user yet?</small>
<medium>Register here</medium>
</div>
</article>
CSS Code:
.radius-10 {
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
.shadow {
-webkit-box-shadow: 0px 1px 12px rgba(50, 50, 50, 0.75);
-moz-box-shadow: 0px 1px 12px rgba(50, 50, 50, 0.75);
box-shadow: 0px 1px 12px rgba(50, 50, 50, 0.75);
}
#main-login {
margin-top: 25px;
width: 100%;
}
#main-login div {
display: inline-block;
height: 170px;
vertical-align: top;
}
#main-login > div:first-child {
background: url(../media/images/medicos.jpg) no-repeat;
background-attachment:fixed;
margin-right: 20px;
overflow: hidden;
width: 73%;
}
#area-login {
background: rgb(255,255,255); /* Old browsers */
/* Other gradient properties */
width: 24%;
}
Update:
Managed to solve the problem. The issue was caused by using both border-radius and filter in CSS. By commenting out the filter line as shown below, the problem was resolved:
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e5ecef',GradientType=0 ); /* IE6-8 */
Everything works fine now!