Ver Mensaje Individual
  #2 (permalink)  
Antiguo 19/09/2010, 13:55
Avatar de chulifo
chulifo
 
Fecha de Ingreso: abril-2009
Ubicación: perdido en codigos del PHP, pero aprendo rapido!
Mensajes: 524
Antigüedad: 14 años, 11 meses
Puntos: 18
Respuesta: Box con formato fijo

Código CSS:
Ver original
  1. /* set millions of background images */
  2. .rbroundbox { background: url(nt.gif) repeat; }
  3. .rbtop div { background: url(tl.gif) no-repeat top left; }
  4. .rbtop { background: url(tr.gif) no-repeat top right; }
  5. .rbbot div { background: url(bl.gif) no-repeat bottom left; }
  6. .rbbot { background: url(br.gif) no-repeat bottom right; }
  7.  
  8. /* height and width stuff, width not really nessisary. */
  9. .rbtop div, .rbtop, .rbbot div, .rbbot {
  10. width: 100%;
  11. height: 7px;
  12. font-size: 1px;
  13. }
  14. .rbcontent { margin: 0 7px;width: 250px; height: 100px;}
  15. .rbroundbox { width: 50%; margin: 1em auto; }

Código HTML:
Ver original
  1. <div class="rbroundbox">
  2.     <div class="rbtop"><div></div></div>
  3.         <div class="rbcontent">
  4.             <p>Lorem ipsum dolor sit amet,
  5.             consectetuer adipiscing elit. Duis
  6.             ornare ultricies libero. Donec
  7.             fringilla, eros at dapibus fermentum,
  8.             tellus tellus auctor erat, vitae porta
  9.             magna libero sed libero. Mauris sed leo.
  10.             Aliquam aliquam. Maecenas vestibulum.</p>
  11.         </div><!-- /rbcontent -->
  12.     <div class="rbbot"><div></div></div>
  13. </div>
__________________
Solo soy un simple fanático que mata el tiempo de la mejor manera.