Foros del Web » Creando para Internet » HTML »

Email html

Estas en el tema de Email html en el foro de HTML en Foros del Web. Hola tengo un problema con este codigo html que mando por email cuando lo abro desde gmail No me reconoce todo el ancho del div ...
  #1 (permalink)  
Antiguo 09/02/2014, 22:15
 
Fecha de Ingreso: enero-2012
Mensajes: 224
Antigüedad: 12 años, 3 meses
Puntos: 1
Email html

Hola tengo un problema con este codigo html que mando por email cuando lo abro desde gmail
No me reconoce todo el ancho del div contenedor central queria saber que tengo que corregir o que me recomiendan mejorar gracias


Código:
<html >
  <head>
    
  </head>
  <body>
<span style='height: 1108px; width: 978px; position: absolute; border: 1px solid #999;'>
		<span  style='height: 800px; width: 960px; position: absolute; left: 9px; top: 9px;'>
        		<a href="url" target="_blank" style='text-decoration: none;'><img src="url image" style='border: none;' /></a>
        </span>
        
        <span style='height: 165px; width: 475px; position: absolute; left: 9px; top: 819px;'>
        		<img src="url image" style='border: none;' /></span>
        
        <span  style='height: 165px; width: 475px; position: absolute; right: 9px; top: 819px;'>
        		<img src="url image" style='border: none;' /></span>
        
        <span  style='height: 55px; width: 960px; position: absolute; left: 9px; top: 994px;'>
        		<a href="url " target="_blank" style="text-decoration: none;"><img src="url image" style='border: none;' /></a>
        </span>
        
        <span style='height: 40px; width: 380px; position: absolute; left: 9px; top: 1059px;'>
        		<img src="url image" style='border: none;' /></span>
        
        <span  style="height: 40px; width: 280px; position: absolute; left: 399px; top: 1059px;">
        		<a href="https://www.facebook.com/" target="_blank" style="text-decoration: none;"><img src="url image" style="border: none;" /></a>
        </span>
        
        <span  style='height: 40px; width: 280px; position: absolute; left: 689px; top: 1059px;'>
        		<a href="https://twitter.com/s" target="_blank" style='text-decoration: none;'><img src="url imagen" style='border: none;' /></a>
        </span>

</span>
 [CONTENT]
</body>
</html>
  #2 (permalink)  
Antiguo 10/02/2014, 02:31
Avatar de Verkia  
Fecha de Ingreso: noviembre-2013
Ubicación: Alicante
Mensajes: 26
Antigüedad: 10 años, 5 meses
Puntos: 2
Respuesta: Email html

Bueno el tema de CSS en email deja mucho que desear, hay muchas propiedades que no las detecta, te paso una lista con dichas propiedades CSS:
http://www.campaignmonitor.com/css/

Imagino que cuando dices contenedor central te refieres al primer span, bueno si quieres que ocupe el ancho total utiliza width=100%. Y evitaría utilizar position:absolute, quizás una tabla se te adapte mejor.

Un saludo.
  #3 (permalink)  
Antiguo 10/02/2014, 06:58
 
Fecha de Ingreso: enero-2012
Mensajes: 224
Antigüedad: 12 años, 3 meses
Puntos: 1
Respuesta: Email html

Muchas gracias use tablas y me fue muy bien
  #4 (permalink)  
Antiguo 10/02/2014, 09:55
Avatar de hackjose  
Fecha de Ingreso: abril-2010
Ubicación: Edo Mexico
Mensajes: 1.178
Antigüedad: 14 años
Puntos: 131
Respuesta: Email html

Las propiedades width y height no aplican a elementos inline no reemplazados

Usar tablas para diseño no es ideal, si piensas hacerlo tienes que agregar el atributo role="presentation"

saludos n_n
  #5 (permalink)  
Antiguo 10/02/2014, 10:07
 
Fecha de Ingreso: diciembre-2013
Mensajes: 150
Antigüedad: 10 años, 3 meses
Puntos: 8
Respuesta: Email html

Por que no usas PHP???? Es mas facil enviar emails con ese lenguaje.
__________________
¿Necesitas ayuda con algún algoritmo? Si tienes dudas, entonces visita: http://algoritmosypseudocodigo.blogspot.com/.
  #6 (permalink)  
Antiguo 11/02/2014, 17:02
Avatar de Carlangueitor
Moderador ლ(ಠ益ಠლ)
 
Fecha de Ingreso: marzo-2008
Ubicación: México
Mensajes: 10.037
Antigüedad: 16 años, 1 mes
Puntos: 1329
Respuesta: Email html

Las tablas están bien si haces mailing, los clientes de correo son incompatibles con mucha parte de CSS. Y El lenguaje de programación con que envíes los correos no tiene que ver con eso.

Saludos
__________________
Grupo Telegram Docker en Español

Etiquetas: email, href, todo
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 17:19.