public
Created

bordes redondeados con Divs y CSS hasta en explorer

  • Download Gist
redondo.html
HTML
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
<html>
<head>
<style>
.contenedor-que-indica-el-ancho { width:250px; }
.b1, .b2, .b3, .b4{font-size:1px; overflow:hidden; display:block;}
.b1 {height:1px; background:#D1D1D1; margin:0 5px;}
.b2 {height:1px; background:#fff; border-right:2px solid #D1D1D1; border-left:2px solid #D1D1D1; margin:0 3px;}
.b3 {height:1px; background:#fff; border-right:1px solid #D1D1D1; border-left:1px solid #D1D1D1; margin:0 2px;}
.b4 {height:2px; background:#fff; border-right:1px solid #D1D1D1; border-left:1px solid #D1D1D1; margin:0 1px;}
.contentb {background: #fff; border-right:1px solid #D1D1D1; border-left:1px solid #D1D1D1;}
.contentb div {margin:0;}
</style>
</head>
<body>
<div class="contenedor-que-indica-el-ancho">
<b class="b1"></b>
<b class="b2"></b>
<b class="b3"></b>
<b class="b4"></b>
<div class="contentb">
<div>
aca esta el contenido
</div>
</div>
<b class="b4"></b>
<b class="b3"></b>
<b class="b2"></b>
<b class="b1"></b>
</div>
</body>
</html>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.