I'm using the following code for the 2 borders of different colors, and space between the borders. I'm using the property outline-offset
for the space between the borders. However it is not supported in IE (not even IE9).
Is there any alternate solution which works in the IE as well, without adding another div in the html.
HTML:
<div class="box"></div>
CSS:
.box{
width: 100px;
height: 100px;
margin: 100px;
border: 2px solid green;
outline:2px solid red;
outline-offset: 2px;
}
The height and width is not fixed, i have just used for the example.
JSFiddle: http://jsfiddle.net/xyXKa/
See Question&Answers more detail:os