Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/03/2012, 07:18
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: iframe no funciona

Sería asi

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>iframe abajo centrada</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6.  
  7. <style type="text/css">
  8. /*<![CDATA[*/
  9.  
  10. iframe {
  11. width: 300px;
  12. height: 200px;
  13. position: absolute;
  14. bottom: 50px;
  15. left: 50%;
  16. margin: 0 0 0 -150px;
  17. }
  18.  
  19. /*]]>*/
  20. </head>
  21. <iframe src="about:blank"></iframe>
  22. </body>
  23. </html>

El centrado lo obtenes con left: 50% y margin: valor negativo = a la mitad del ancho del iframe. por lo cual deberás darle un ancho, cosa que no hiciste
Saludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.