/ Published in: CSS
<p>Cross-browser compatible especially for IE6/7 and makes use of CSS sprites for faster downloading. Download file <a href="http://johnimbong.com/blog/wp-content/uploads/2009/09/curves.zip">curves.zip (75 bytes)</a> which contains the CSS sprite needed to make this work.</p>
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/* HTML source: <div class="rounded"> <div class="crv_top"><div></div></div> <div class="info">z</div> <div class="crv_btm"><div></div></div> </div> */ .rounded {width:200px; margin:100px auto 0; background:#a7c8dc;} .rounded .crv_top, .rounded .crv_top div, .rounded .crv_btm, .rounded .crv_btm div {height:3px; background:url(curves.gif) 0 0 no-repeat; _font-size:0;} .rounded .crv_top {background-position:right -3px;} .rounded .crv_btm {background-position:right -9px;} .rounded .crv_btm div {background-position:0 -6px;}