Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/05/2009, 15:44
Avatar de gVenom
gVenom
 
Fecha de Ingreso: julio-2008
Ubicación: Costa Rica
Mensajes: 1.458
Antigüedad: 15 años, 10 meses
Puntos: 53
Problemas de height

Saludos.

Tengo una web que no me esta creciendo en el height cuando el contenido es mas grande, eso que hablan de los div padres y esas cosas. Generalmente uso el mismo sistema de armar mis web y todo anda normal, pero ahora no se que pasa que no crece el div central con el contenido.

La estructura va asi:
container= contiene todo lo que hay en la página
header= tiene tamaño definido y es la cabecera de mi web
content= aqui va el contenido central de la página, y es el que me esta dando problemas
footer= el pie de página.

el preview de la página se ve aqui, el codigo va abajo.

Código CSS:
Ver original
  1. #container{
  2.     position:relative;
  3.     width:800px;
  4.     padding:0;
  5.     margin:0 auto;
  6.     overflow:auto;
  7. }
  8. #header{
  9.     position:relative;
  10.     width:799px;
  11.     height:200px;
  12. }
  13. #title{
  14.     position:relative;
  15.     background-image:url(../images/bg-title.jpg);
  16.     background-repeat:repeat;
  17.     height:67px;
  18.     width:799px;
  19.     line-height:120px;
  20. }
  21. #menu{
  22.     position:relative;
  23.     background-image:url(../images/bg-menu.jpg);
  24.     height:51px;}
  25. #content{
  26.     position:relative;
  27.     width:799px;
  28.     height:100%;
  29. }
  30. #box-txt-left{
  31.     position:relative;
  32.     background-color:#fff;
  33.     width:449px;
  34.     top:50px;
  35.     left:50px;
  36.     -moz-border-radius: 10px 10px 10px 10px;
  37.     -webkit-border-radius:10px 10px 10px 10px;
  38.     -ms-border-radius:10px 10px 10px 10px;
  39. }
  40. #footer{
  41.     position:relative;
  42.     background-image:url(../images/bg-footer.jpg);
  43.     background-repeat:repeat;
  44.     width:799px;
  45.     height:47px;
  46. }

Código HTML:
<!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>Untitled Document</title>
<link rel="stylesheet" href="css/txt-style.css" type="text/css" />
<link rel="stylesheet" href="css/div-style.css" type="text/css" />
</head>

<body>
<div id="container">
	<div id="header"><div id="title"><img src="images/title.gif" alt="Title" width="431" height="33" style="margin-top:15px;" /></div>
	</div>
    <div class="menu" id="menu">
      <p><a href="#">ABOUT US</a> | <a href="#">PHOTO GALLERIES</a> | <a href="#">DONATIONS</a> | <a href="#">SEMINARS &amp; 			            CONFERENCES</a> | <a href="#">LEADERS TRAINING COURSES</a></p>
    </div>
    <div id="content">
    <div id="box-txt-left">
      <p><strong>Welcome to our  website!&nbsp; </strong>We exist as a Christ  centered ministry to minister and impart the love of Father God into the hearts  of people through leadership training, seminars, retreats, conferences,  crusades, and social outreach. </p>
      <p>The passion of this ministry is to release into the lives of men  and women the knowledge that Father God loves them and His love is everlasting  without conditions.&nbsp; Imparting into them the absolute truth that they are  valued and God holds them close to His heart causing the sick to be healed, the  bound to be set free and the broken hearted to be restored.&nbsp;&nbsp; </p>
      <p>We desire to ignite a passion  for Father’s love in local leaders and pastors by building relationships and  serving them to help in the ministry of receiving love and giving it away.</p>
    </div>
    
    </div>
<div id="footer"></div>
</div>
</body>
</html> 
__________________
"Al que venciere y guardare mis obras hasta el fin, yo le daré autoridad sobre las naciones."
Apocalipsis 2: 26
Servicios para Pymes http://dst.co.cr