/ Published in: CSS
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/*ESTRUCTURA HTML*/ /* <div>Contenido de la caja</div> */ /*---- USANDO IMAGENES -------*/ /*requiere cuatro imagenes, una para cada esquina*/ .box { background-image: url(top-left.gif), url(top-right.gif), url(bottom-left.gif), url(bottom-right.gif); background-repeat: no-repeat, no-repeat, no-repeat, no-repeat; background-position: top left, top right, bottom left, bottom right; } /*---- SIN IMAGENES ------*/ .box { border-radius: 1.6em; }
URL: http://24ways.org/2006/rounded-corner-boxes-the-css3-way