Foros del Web » Creando para Internet » CSS »

navegador chrome modifica diseño

Estas en el tema de navegador chrome modifica diseño en el foro de CSS en Foros del Web. hola, tengo una pagina sencilla, pero se ve bien en IE, Firefox y el Chrome me manda el texto abajo de la imagen. Es una ...
  #1 (permalink)  
Antiguo 13/08/2014, 21:12
Avatar de edurocc  
Fecha de Ingreso: julio-2013
Mensajes: 103
Antigüedad: 10 años, 9 meses
Puntos: 1
navegador chrome modifica diseño

hola, tengo una pagina sencilla, pero se ve bien en IE, Firefox y el Chrome me manda el texto abajo de la imagen.
Es una imagen y un texto sobre ella, y el Chrome manda el texto abajo de la imagen.
Pego lo hecho a ver si encuentran algo.
Gracias.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Inter01</title>
<link rel="shortcut icon" type="image/x-icon" href="../images/favicon.ico" />

<!-- style-->
<style type="text/css">
<!--
#content {
position: relative;
margin:0 auto;
left:0px;
top:0px;
width:1100px;
height:660px;
}
a {
text-decoration:none;
position:relative;
}
.pic {
position:relative;

}
.pic span {
position:absolute;
right:85px;
margin-top:200px;
}
h1 {
text-align:center;
font-style:normal;
font-family: 'Open Sans', sans-serif;
font-size: 22px;
color:#AFB1C6;

}
h2 {
text-align:center;
text-decoration:none;
font-family: 'Open Sans', sans-serif;
font-size: 22px;
color:#32125F;

}
-->
</style>
<!-- fin style-->
</head>

<body style=" background-image: url(../images/backgraund.jpg)">
<div id="content">

<div class="pic">
<a href="javascript:history.back(1)">
<img src="01xxxxxx.jpg" width="1100" height="660" />
<span><h1>xxxxx<br>xxxxxxxxxxxx<br>xxxxxxxxxxx<br> xxxxxxxxxxxxxxxxxxx<br>xxxxxxxxxxxx<br>xxxxxxxxxxx xxxxxxxxx<br>xxxxxxxxxxx<br>xxxxxxxxxxxxx<br>xxxxx xxxxx<br><br></h1>
<h2>xxxxxxxxxxxx<br>xxxxxxxxxxxxxx<br>xxxxxxxxxxxx <br>xxxxxxxxxxxxxxxxxx</h2>
</span>
</a>
</div>

</div>
</body>

</html>
  #2 (permalink)  
Antiguo 14/08/2014, 08:18
Avatar de AitorDB  
Fecha de Ingreso: agosto-2014
Ubicación: Cádiz, España
Mensajes: 52
Antigüedad: 9 años, 9 meses
Puntos: 5
Respuesta: navegador chrome modifica diseño

Se me ocurre que para solucionarlo podrías poner la imagen como fondo del div y para el enlace enlazar todo el div.

Se veo o se me ocurre algo más te digo.
Suerte!
  #3 (permalink)  
Antiguo 14/08/2014, 08:41
Avatar de ztikma  
Fecha de Ingreso: diciembre-2001
Ubicación: Viña del Mar
Mensajes: 1.144
Antigüedad: 22 años, 4 meses
Puntos: 1
Respuesta: navegador chrome modifica diseño

Mándanos la URL para ver como se comporta =)
__________________
La Pana
  #4 (permalink)  
Antiguo 14/08/2014, 20:12
Avatar de edurocc  
Fecha de Ingreso: julio-2013
Mensajes: 103
Antigüedad: 10 años, 9 meses
Puntos: 1
Respuesta: navegador chrome modifica diseño

Cita:
Iniciado por ztikma Ver Mensaje
Mándanos la URL para ver como se comporta =)
aun no la subi
  #5 (permalink)  
Antiguo 16/08/2014, 14:35
Avatar de webosiris
Moderador egiptólogo
 
Fecha de Ingreso: febrero-2002
Ubicación: Luxor, Egipto
Mensajes: 10.725
Antigüedad: 22 años, 2 meses
Puntos: 998
Respuesta: navegador chrome modifica diseño

tu código es un lío, en XHTML no está permitido que elementos en línea, como A o SPAN, contengan elementos en bloque como H1-H2
__________________
Pasamos tus PSD a HTML

Pobre del que lo sabe todo, porque no tiene nada más que aprender ni razón para vivir. -

Etiquetas: background, chrome, color, diseño, html, navegador, width
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 14:48.