Ver Mensaje Individual
  #6 (permalink)  
Antiguo 12/11/2009, 14:18
kseso?
Colaborador
 
Fecha de Ingreso: junio-2007
Mensajes: 5.798
Antigüedad: 16 años, 10 meses
Puntos: 539
Respuesta: Div al costado de otro

Prueba este código a ver si te sirve de guía:
Código html:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es-es">
  3. <title>kseso? jugando con css</title>
  4. <style type="text/css">
  5. * {margin: 0; padding: 0; border: 0; position: relative;}
  6. * html, * body { height: 100%; overflow:auto;}
  7. html, body {
  8. background-color: #cdcdcd;
  9. }
  10. #container {
  11. margin:10px auto;
  12. width:480px;
  13. }
  14. #container img.principal {
  15. left:0;
  16. position:relative;
  17. top:0;
  18. }
  19. .cierre {
  20. background-color:red;
  21. /*height:30px;*/
  22. position:absolute;
  23. right:-15px;
  24. top:0;
  25. width:15px;
  26. }
  27. </head>
  28. <body>
  29. <div id="container">
  30. <img class="principal" src="http://share.skype.com/sites/es/skype/skype32ready.jpg" alt="una imagen" />
  31. <span class="cierre">X</span>
  32. </div>
  33. </body>
  34. </html>
__________________
Por una web con mucho estilo
+++ CUENTA ABANDONADA. ¿la quieres? +++