Pseudo Content Properies Varies In Each Browsers
I am using custom CSS to style radio boxes but now the problem is that checked radio circle is appearing at diff positions in IE11, FF36 and Chrome. Below is the illustration CS
Solution 1:
I changed the approach. Instead of using content and line height, i switched as below
label:before {
content: "";
display: inline-block;
width: 20px;
height: 20px;
margin-right: 10px;
position: absolute;
padding:1px;
left: 0;
border:1px solid black;
border-radius: 50px;
}
input[type=radio]:checked + label:before {
border:1px solid blue;
background-color:blue;
box-shadow: 0003px#fff inset;
width: 20px;
height: 20px;
}
Post a Comment for "Pseudo Content Properies Varies In Each Browsers"