Foros del Web » Creando para Internet » CSS »

Problemas con Firefox

Estas en el tema de Problemas con Firefox en el foro de CSS en Foros del Web. Hola a todos, Os comento el problema que no consigo solucionar. En Firefox 2.0.0.2 para mac el contenido de una caja flotante se descoloca. Si ...
  #1 (permalink)  
Antiguo 06/03/2007, 10:26
 
Fecha de Ingreso: octubre-2005
Mensajes: 4
Antigüedad: 18 años, 6 meses
Puntos: 0
Problemas con Firefox

Hola a todos,
Os comento el problema que no consigo solucionar.
En Firefox 2.0.0.2 para mac el contenido de una caja flotante se descoloca. Si actualizo la página aprece correctamente. En otros navegadores no tengo problemas.

Podeis verlo en este link: insidechannel.com/xavi/boxes/productos.html

CSS
Código:
#productos ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
} 
#productos li {
	width: 170px;
	height: 230px;
	*height: 230px;
	margin: 2px 15px 10px 0;
	*margin: 2px 12px 10px 0;
	padding: 0;
	border: 1px solid #000000;
    background: #333;
    text-align: center;
	float: left;
}
#productos li a {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
} 
#productos li a:hover {
	text-decoration: none;
    background: #ffffff;
}
#productos li a .cabecera {
	height: 20px;
	width: 100%;
	padding-top: 9px;
	font-size: 12px;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
	color: #FFFFFF;
	text-indent: 8px;
	background-color: #000000;
	text-align: left;
}
#productos li a .text  {
	color:#000000;
	font-size: 11px;
	text-align: left;
	padding: 5px;
}
A ver si alguien puede echarme un cable.

Gracias.

Saludos.
  #2 (permalink)  
Antiguo 06/03/2007, 11:40
 
Fecha de Ingreso: octubre-2005
Mensajes: 4
Antigüedad: 18 años, 6 meses
Puntos: 0
Re: Problemas con Firefox

He modificado el código evitando el uso de las listas y creando divs independientes para cada caja.
El problema en firefox es que en 2 cajas no coge el formato del css.

Adjunto código por si alguien tiene alguna idea.
Código:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Documento sin t&iacute;tulo</title>
<style type="text/css">

#header {
	background-image: url(imagenes/header.png);
	height: 120px;
	width: 800px;
	margin: 0 auto 10px auto;
	padding: 0px;
}
#main {
	width: 800px;
	margin: 0px auto 0 auto;
	overflow: hidden;
	padding: 0px;
	text-align: left;
}
#content {
	text-align: left;
	float: right;
	width: 575px;
	padding: 10px 15px 20px 20px;
	clear: both;
}
.corte {
	clear:both;
}
.derecha {
	width: 30%;
	height: 220px;
	float: right;
	padding: 0;
	border: 1px solid #000;
    background: #333;
    text-align: center;
    margin-bottom: 12px;	
}
.izquierda {
	width: 30%;
	height: 220px;
	float: left;
	padding: 0;
	border: 1px solid #000;
    background: #333;
    text-align: center;
    margin-bottom: 12px;
}
.centro {
	width: 30%;
	height: 220px;
	margin:  0 auto;
	padding: 0;
	border: 1px solid #000;
    background: #333;
    text-align: center;
    margin-bottom: 12px;
} 
.derecha a, .centro a, .izquierda a {
	display: block;
	width: 100%;
	text-decoration: none;
} 
.derecha a:hover, .centro a:hover, .izquierda a:hover {
	text-decoration: none;
    background: #ffffff;
}
.cabecera {
	height: 20px;
	width: 100%;
	padding-top: 9px;
	font-size: 12px;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
	color: #FFFFFF;
	text-indent: 8px;
	background-color: #000;
	text-align: left;
}
.text {
	color:#000000;
	font-size: 11px;
	text-align: left;
	padding: 5px;
}

</style>
</head>

<body>
<div id="header"></div>
<div id="main">
<div id="content">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>

<div class="derecha"><a href=""><div class="cabecera">Lorem Ipsum is simply</div><br /><img src="imagenes/01.jpg" border="0" alt=""/><div class="text"><p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.</p></div></a></div>

<div class="izquierda"><a href=""><div class="cabecera">Lorem Ipsum is simply</div><br /><img src="imagenes/02.jpg" border="0" alt=""/><div class="text"><p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.</p></div></a></div>

<div class="centro"><a href=""><div class="cabecera">Lorem Ipsum is simply</div><br /><img src="imagenes/03.jpg" border="0" alt=""/><div class="text"><p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.</p></div></a></div>

<div class="corte"></div>

<div class="derecha"><a href=""><div class="cabecera">Lorem Ipsum is simply</div><br /><img src="imagenes/04.jpg" border="0" alt=""/><div class="text"><p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.</p></div></a></div>

<div class="izquierda"><a href=""><div class="cabecera">Lorem Ipsum is simply</div><br /><img src="imagenes/05.jpg" border="0" alt=""/><div class="text"><p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.</p></div></a></div>

<div class="centro"><a href=""><div class="cabecera">Lorem Ipsum is simply</div><br /><img src="imagenes/06.jpg" border="0" alt=""/><div class="text"><p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.</p></div></a></div>

<div id="entry">
<p>Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.</p>
</div>


</div>
</div>

</body>
</html>
  #3 (permalink)  
Antiguo 06/03/2007, 12:13
Avatar de Carlos Santany  
Fecha de Ingreso: marzo-2007
Ubicación: Colima, Mex.
Mensajes: 31
Antigüedad: 17 años, 1 mes
Puntos: 1
Re: Problemas con Firefox

No se te hace que son muchisimos DIVs?, digo no afecta en nada, pero a lo mejor si quitas algunos, podras encontrar el problema, yo al ver el sinfin de Divs me dio flojera revisar el codigo, sorry.
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 02:25.