Ver Mensaje Individual
  #13 (permalink)  
Antiguo 18/06/2011, 14:23
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 10 meses
Puntos: 1567
Respuesta: Código de principiante CSS no me aclaro llevo 4 días con lo mismo...

A ver, lo que sigue funciona en todos lados, le agregue un pequeño reset para pulirlo mas
( Probado en IE, Safari,Chrome,Opera, Firefox4, Konqueror)

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4.     <title>Posicionar imágen</title>
  5.   <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6.   <style type="text/css">
  7.    
  8.  html, body, img, div {
  9. margin: 0px;
  10. padding: 0px;
  11. }
  12.  
  13. h1 {
  14. color: red;
  15. font-family:"Arial Black",Gadget, sans-serif;
  16. font-size: 12px;
  17. text-align: center;
  18.  }
  19.  
  20. img#imagen1 {
  21. position: absolute;
  22.  left: 20%;
  23.  top: 40%;
  24.  margin: 0px
  25.  padding: 0px;
  26.   }
  27.  
  28. </head>
  29.  <h1>PRUEBA</h1>
  30.  <img  id="imagen1" src="cat-black.jpg" width="320" height="400" alt="" />
  31. </body>
  32. </html>


Saludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.