Ver Mensaje Individual
  #8 (permalink)  
Antiguo 10/02/2012, 18:51
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: ¿Como Centrar el contenido de IFRAME?

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>titulo</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6.  
  7.  
  8. <style type="text/css">
  9. /*<![CDATA[*/
  10.  
  11. iframe{
  12. width: 600px;
  13. height: 300px;
  14. margin: 0 auto;
  15. display: block;
  16. }
  17.  
  18. /*]]>*/
  19. </head>
  20. <iframe src="contenido.html"></iframe>
  21. </body>
  22. </html>


contenido.html

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>titulo</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6.  
  7. <style type="text/css">
  8. /*<![CDATA[*/
  9.  
  10. p{
  11. text-align: center;
  12. }
  13.  
  14. /*]]>*/
  15. </head>
  16. <p>Contenido</p>
  17. </body>
  18. </html>
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.