Foros del Web » Creando para Internet » CSS »

Espacio en blanco entre <Div>

Estas en el tema de Espacio en blanco entre <Div> en el foro de CSS en Foros del Web. He buscado sobre este problema pero no he logrado solucionarlo. Me gustaria que revisaran el por que y me ayudaran. Resulta que tengo espacios imaginarios ...
  #1 (permalink)  
Antiguo 19/05/2009, 19:14
 
Fecha de Ingreso: mayo-2009
Mensajes: 5
Antigüedad: 14 años, 11 meses
Puntos: 0
Exclamación Espacio en blanco entre <Div>

He buscado sobre este problema pero no he logrado solucionarlo.
Me gustaria que revisaran el por que y me ayudaran.
Resulta que tengo espacios imaginarios en algunos Div.

Se trata de 2 div que pongo al final de la web como footers pero si meto un div dentro de ellos o escribo algun texto, se abre espacio entre ellos quisiera saber de una vez por todas como arreglar mi problema.

El codigo CSS y el HTML vienen abajo por que no me cave en este post.

La Url esta en mi perfil.

Saludos.
  #2 (permalink)  
Antiguo 19/05/2009, 19:15
 
Fecha de Ingreso: mayo-2009
Mensajes: 5
Antigüedad: 14 años, 11 meses
Puntos: 0
Respuesta: Espacio en blanco entre <Div>

Codigo CSS:

Código:
@charset "utf-8";
/* CSS Document */

body, html {
	height:100%;
	}

#body1 {
	margin: 0 auto;
	height:100%;
	padding: 0;
	background-image: url(imagenes/fondo.png);
	background-attachment: fixed;
}

#body2  {
	margin: 0 auto;
	padding: 0;
	background-image: url(imagenes/fondo.png);
	background-attachment: fixed;
}

* html body {
	font-size: x-small; /* for IE5/Win */
	f\ont-size: small; /* for other IE versions */
	}
	
#container {
	background-color:#171717;
	background-image: url(imagenes/bg_container.png);
	width: 958px;
	margin: 0 auto;
	overflow: hidden;
	}

#logo {
	background-image:url(imagenes/logobonanno.png);
	width: 958px;
	height:300px;
	margin: 0 auto;
	}

#parte1 {
	background-image:url(imagenes/parte1.png);
	width: 958px;
	height: 231px;
	margin: 0 auto;
}	

#parte2 {
	width: 958px;
	height: 100%;
	margin: 0 0 0 0;
}	



#escudo {
	
	background: url(imagenes/escudo.png) no-repeat center center;
	width: 218px;
	height: 195px;
	margin: 35px 0 0 35px;
	float:left;
}

#cuadro {	
	width: 468px;
	height: 230px;
	margin: 0 130px 0 0;
	float: right;

}

#cuadro h1 {
	width: 250px;
	height: 60px;
	float: right;
	text-align: center;
	color: #a0a0a0;
	margin: 0 106px 0 0;
	font-size: 0.8em;
	line-height: 1.2em;
	}

#cuadro h2 {
	width: 400px;
	float: right;
	text-align: center;
	color: #a0a0a0;
	margin: 65px 35px 0 0;
	font-size: 0.8em;
	line-height: 1.2em;
	height: 53px;
}
	
/* MENU */	
	
#menu {
	background-image:url(imagenes/menu_bg.png);
	width: 257px;
	height: 100%;
	float:left;
	position:relative 
}

#menu h1 {
	clear: both;
	margin: 0;
	width: 258px;
	height: 50px;
	background: url(imagenes/top_menu.png) top no-repeat;
	//width: 258px;
}

#menu h2 {
	clear: both;
	margin: 0;
	width: 258px;
	height: 50px;
	background: url(imagenes/medio_menu.png) top no-repeat;
	//width: 258px;
}


/* BOTONES */

ul li {
	display:block;
	list-style-type:none;
     }
	
ul li#botoninicio a {
	display:block;
	height:66px; 
    background:transparent url(imagenes/menu/inicio.png) no-repeat 0 0;
    text-indent:-9009px;
    width:200px;
    background-position: 0px 0;
	border-bottom: 1px solid #999;
	outline: 0
    }

ul li#botonnormativa a {
	display:block;
	height:66px; 
    background:transparent url(imagenes/menu/normativa.png) no-repeat 0 0;
    text-indent:-9009px;
    width:200px;
    background-position: 0px 0;
	border-bottom: 1px solid #999;
	outline: 0
    }
	
ul li#botonunete a {
	display:block;
	height:66px; 
    background:transparent url(imagenes/menu/unete.png) no-repeat 0 0;
    text-indent:-9009px;
    width:200px;
    background-position: 0px 0;
	border-bottom: 1px solid #999;
	outline: 0
    }
	
ul li#botonfamiglia a {
	display:block;
	height:66px; 
    background:transparent url(imagenes/menu/famiglia.png) no-repeat 0 0;
    text-indent:-9009px;
    width:200px;
    background-position: 0px 0;
	outline: 0
    }
	
ul li#botongalardones a {
	display:block;
	height:66px; 
    background:transparent url(imagenes/menu/galardones.png) no-repeat 0 0;
    text-indent:-9009px;
    width:200px;
    background-position: 0px 0;
	border-bottom: 1px solid #999;
	outline: 0
    }
	
ul li#botonhistoria a {
	display:block;
	height:66px; 
    background:transparent url(imagenes/menu/historia.png) no-repeat 0 0;
    text-indent:-9009px;
    width:200px;
    background-position: 0px 0;
	border-bottom: 1px solid #999;
	outline: 0
    }

ul li#botondas a {
	display:block;
	height:66px; 
    background:transparent url(imagenes/menu/das.png) no-repeat 0 0;
    text-indent:-9009px;
    width:200px;
    background-position: 0px 0;
	border-bottom: 1px solid #999;
	outline: 0
    }
	
ul li#botoncap a {
	display:block;
	height:66px; 
    background:transparent url(imagenes/menu/cap.png) no-repeat 0 0;
    text-indent:-9009px;
    width:200px;
    background-position: 0px 0;
	border-bottom: 1px solid #999;
	outline: 0
    }

ul li#botonantesdespues a {
	display:block;
	height:66px; 
    background:transparent url(imagenes/menu/antesdespues.png) no-repeat 0 0;
    text-indent:-9009px;
    width:200px;
    background-position: 0px 0;
	border-bottom: 1px solid #999;
	outline: 0
    }
	
ul li#botonnoticias a {
	display:block;
	height:66px; 
    background:transparent url(imagenes/menu/noticias.png) no-repeat 0 0;
    text-indent:-9009px;
    width:200px;
    background-position: 0px 0;
	border-bottom: 1px solid #999;
	outline: 0
    }
	
ul li#botonmiembros a {
	display:block;
	height:66px; 
    background:transparent url(imagenes/menu/miembros.png) no-repeat 0 0;
    text-indent:-9009px;
    width:200px;
    background-position: 0px 0;
	border-bottom: 1px solid #999;
	outline: 0
    }

ul li#botongaleria a {
	display:block;
	height:66px; 
    background:transparent url(imagenes/menu/galeria.png) no-repeat 0 0;
    text-indent:-9009px;
    width:200px;
    background-position: 0px 0;
	outline: 0
    }
	
ul li#botoninicio a:hover {
   	background-position: 0 -66px;
   }
   
ul li#botonnormativa a:hover {
background-position: 0 -66px;
    }	

ul li#botonunete a:hover {
background-position: 0 -66px;
    }	

ul li#botonfamiglia a:hover {
background-position: 0 -66px;
    }	

ul li#botongalardones a:hover {
background-position: 0 -66px;
    }	

ul li#botonhistoria a:hover {
background-position: 0 -66px;
    }	

ul li#botondas a:hover {
background-position: 0 -66px;
    }	

ul li#botoncap a:hover {
background-position: 0 -66px;
    }	

ul li#botonantesdespues a:hover {
background-position: 0 -66px;
    }
	
ul li#botonnoticias a:hover {
background-position: 0 -66px;
    }	
	
ul li#botonmiembros a:hover {
background-position: 0 -66px;
    }	
	
ul li#botongaleria a:hover {
background-position: 0 -66px;
    }	
	
/* CONTENIDO */

#contenido {
	background-image:url(imagenes/parte3_bg.png);
	width: 699px;
	margin: 0 0 0 0;
	float: right;
	min-height:100%;
	height:auto;
}

#contenido h1 {
	clear: both;
	margin: 0;
	width: 699px;
	height: 30px;
	background: url(imagenes/top_contenido.png) top no-repeat;
	//width: 699px;
	position:relative 
}

#contenido h2 {
	clear: both;
	margin: 0;
	width: 699px;
	height: 30px;
	background: url(imagenes/bottom_contenido.png) top no-repeat;
	//width: 699px;
}

#contenido2 {
	width: 603px;
	margin: 0 0 0 30px;
}

#contenido3 {
		background-color:#000;
	width: 603px;
}

#juramento {
	width: 603px;
	height: 511px;
	clear: both;
	margin: 0;
}


#juramento h3 {
	width: 603px;
	margin: 20px 0 20px 0;
	//	margin: 20px 0 10px 0;
}

#juramento h4 {
	width: 603px;
	margin: 0 0 0 100px;
}

#separador {
	clear: both;
	width: 603px;
	height: 19px;
	margin: 0 auto;
	background: url(imagenes/separador.png) top no-repeat;
}	

#noticias2 {
	width: 583px;
	margin: 0 auto;
	padding: 10px 10px 10px 10px;
	background: url(imagenes/noticias2_bg.png) center no-repeat;
}

#noticias2 p {
	font: 12px "Verdana", Geneva, sans-serif;
	color: #CCC;
	font-size: 10px;
	margin: 5px 10px 10px 10px;
}

#noticias2 h3 {
   font: 12px "Verdana", Geneva, sans-serif;  
   padding: 5px 5px 5px 5px;
   font-weight: bold;
   margin: 5px 150px 5px 10px;
   font-style: oblique;
   color: #C00;
}
#noticias2 h5 {	
	width: 603px;
	margin: 20px 0 20px 0;
}

#noticias3 {
   color: #b1ae94;
   font-size: 14px;
   margin: 10px 30px 10px 30px;
}

#normativa1 {
   color: #b1ae94;
   font-size: 14px;
   margin: 10px 30px 10px 30px;
}

#unete1 {
   color: #b1ae94;
   font-size: 14px;
   margin: 10px 30px 10px 30px;
}

#unete1 h6{
   font: 12px "Verdana", Geneva, sans-serif;  
   padding: 5px 5px 5px 5px;
   font-weight: bold;
   font-style: oblique;
   color: #063;
}

#unete1 h2{
   font: 12px "Verdana", Geneva, sans-serif;  
   padding: 5px 5px 5px 5px;
   font-weight: bold;
   font-style: oblique;
   color: #FFF;
}

#unete1 h4{
   font: 12px "Verdana", Geneva, sans-serif;  
   font-weight: bold;
   font-style: oblique;
   color: #900;
}

#historia {
   color: #b1ae94;
   font-size: 14px;
   margin: 10px 30px 10px 30px;
}

#historia a {
color: #FFF;
}

#footer {
	background-image:url(imagenes/bg_footer.png);
	width: 958px;
	height: 100px;
	margin: 0 auto;
	padding: 0;
	clear:both;
	display:block;
}

#footer2 {
	background-image:url(imagenes/bg_footer2.png);
	width: 100%;
	height: 100px;
	margin: 0;
	padding: 0;
	clear:both;
	display:block;
}	

#footer2 p {
	font: 12px "Verdana", Geneva, sans-serif;
	color: #CCC;
	font-size: 10px;
	text-align:center;
	font-weight: bold;
	text-decoration:underline;
}

#footer2 h1 {
	font: 12px "Verdana", Geneva, sans-serif;
	color: #CCC;
	font-size: 10px;
	text-align:center;
	font-weight: bold;
}


#copyright {
	height: 50px;
	margin: 10px 0 0 0;
	text-align:center;
}
  #3 (permalink)  
Antiguo 19/05/2009, 19:16
 
Fecha de Ingreso: mayo-2009
Mensajes: 5
Antigüedad: 14 años, 11 meses
Puntos: 0
Respuesta: Espacio en blanco entre <Div>

Codigo HTML:

Código:
<head>
</head>

<body id="body1">
<div id="container">
  <div id="logo">
  </div>
  <div id="parte1">
  		<div id="escudo">
   		</div>
  		<div id="cuadro">
   		<h1><img src="imagenes/bienve.png" width="250" height="60" /></h1>
    	<h2><img src="imagenes/lema.png" width="350" height="43" /></h2>
		</div>
  </div>
  <div id="parte2">
    <div id="menu">
     <h1></h1> 
     <ul>
		<li id="botoninicio"><a href="javascript:llamarasincrono('contenido/inicio.html', 'contenido2');"></a></li>
		<li id="botonnormativa"><a href="javascript:llamarasincrono('contenido/normativa.html', 'contenido2');"></a></li>
        <li id="botonunete"><a href="javascript:llamarasincrono('contenido/unete.html', 'contenido2');"></a></li>
        <li id="botonfamiglia"><a href="javascript:llamarasincrono('contenido/famiglia.html', 'contenido2');"></a></li>
	  </ul>
    <h2></h2>
     <ul>
		<li id="botonnoticias"><a href="javascript:llamarasincrono('contenido/noticias.html', 'contenido2');"></a></li>
		<li id="botonhistoria"><a href="javascript:llamarasincrono('contenido/historia.html', 'contenido2');"></a></li>
        <li id="botondas"><a href="javascript:llamarasincrono('contenido/das.html', 'contenido2');"></a></li>
        <li id="botoncap"><a href="javascript:llamarasincrono('contenido/cap.html', 'contenido2');"></a></li>
        <li id="botonantesdespues"><a href="javascript:llamarasincrono('contenido/antesdespues.html', 'contenido2');"></a></li>
        <li id="botongalardones"><a href="javascript:llamarasincrono('contenido/galardones.html', 'contenido2');"></a></li>
        <li id="botonmiembros"><a href="javascript:llamarasincrono('contenido/miembros.html', 'contenido2');"></a></li>
        <li id="botongaleria"><a href="javascript:llamarasincrono('contenido/galerias.html', 'contenido2');"></a></li>
	  </ul>
</div>
    <div id="contenido">
    <h1></h1>
    <div id="contenido2">
 <div id="juramento">
        <h3><img src="imagenes/titulojuramento.png" width="330" height="70" /></h3>
        <h4><img src="imagenes/juramento_texto.png" width="450" height="400" /></h4>
	</div>
	<div id="separador">
	</div>
    <div id="noticias2">
		<h5><img src="imagenes/noticias.png" width="250" height="70" /></h5>
		  <div id="noticias3">
<h3><img src="imagenes/titulonw.png" width="400" height="70" /></h3>
<blockquote>
  <blockquote>
    <p align="justify">Aqui le traemos una nueva web, unica en su estilo, ninguna<br />
      Famiglia habia tenido un proyecto como este anteriormente.<br />
      Famiglia Bonanno siempre imnovando les trae una web con toda<br />
      la informacion sobre la Famiglia y el mundo de las mafia en Habbo.</p>
    <p align="justify"><em><strong>Por Que para Nosotros lo Más Importante Eres Tú. <br />
      Por Que para Nosotros Lo Más Importante Es Innovar. <br />
      Por Qué Para Nosotros Lo Mas Importante Es Dar Calidad.</strong></em></p>
  </blockquote>
  </blockquote>
<p align="center"><span lang="en" xml:lang="en"><span lang="en" xml:lang="en"><em>&quot;Por Siempre Contar Con Nosotros Y Depositar Su Confianza En Tan Responsable Entidad.&quot;</em></span></span></p>

<p align="justify">&nbsp;</p>
<p ><em>Publicado por, <strong>El Don Ppatron123</strong>.<br />
Atentamente; <span lang="en" xml:lang="en"><span lang="en" xml:lang="en">Directivos Famiglia Bonanno</span></span>.</em></p>
		  </div>
    </div>
    </div>
   <h2></h2>
    </div>
 </div>
</div>
<div id="footer"></div>
<div id="footer2">
<div id="copyright">
<p>Terminos y Condiciones.</p>
</div>
</div>
</body>
</html>
  #4 (permalink)  
Antiguo 20/05/2009, 00:30
 
Fecha de Ingreso: mayo-2009
Mensajes: 5
Antigüedad: 14 años, 11 meses
Puntos: 0
Respuesta: Espacio en blanco entre <Div>

Bueno yo mismo encontre la solucion, no se si sea la mejor pero a los footer le agregue lo siguiente:

Código:
overflow: auto;
Saludos
  #5 (permalink)  
Antiguo 20/05/2009, 04:13
Avatar de CopperDavid  
Fecha de Ingreso: mayo-2009
Ubicación: Madrid
Mensajes: 40
Antigüedad: 14 años, 11 meses
Puntos: 1
Respuesta: Espacio en blanco entre <Div>

Bueno es, si lo as solucionado.

A veces tienes que tirar de trampillas como esas para no atascarte.

Desde mi punto de vista es valida esa opción.

SALU2.
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 05:00.