Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/12/2008, 16:55
shurshok
 
Fecha de Ingreso: septiembre-2008
Ubicación: En algun sitio del CyberSpacio
Mensajes: 150
Antigüedad: 15 años, 7 meses
Puntos: 2
porque al agrandar el height se pone un scroll horizontal?

hola, tengo un problemon, que no logro entender, tengo un div, que al aumentarle el height, aparece un scroll horizontal, que es rarisimo.

este es el código css:

Código HTML:
/*CSS propiedad de OnFLow Prohibida su distribucion*/

/*CSS general*/
body {
	background: url(images/background.jpg);
	width:1024px;
	margin:0px auto;/*Pagina centrada*/
	border-left:1px #000;
	border-right:1px #000;
}

/*Redondear*/
.redondear {
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    behavior:url(border-radius.htc);
    }
/*fin de redondear*/
/*Fin CSS general*/
/*Cabecera*/

#cabecera {
	margin:0px;
	margin-bottom:auto;
	background:url(images/cabecera.png) no-repeat;
	padding:0px;
	padding-bottom:inherit;
	width:1024px;
	height:264px;
}

/*Iconos en cabecera*/

#menu {
	position:relative;
	top:25px;
	left:590px;
	background:#000 url(images/barrabotones.gif) no-repeat;
	width:388px;
	height:90px;
	background:transparent;
}

ul#iconos{
	margin:0px auto;
	list-style-type:none;
	display:block;
	height:90px;
	text-transform:uppercase;
	font-size:12px;
	font-weight:bold;
	width: 388px;
}
ul#iconos li{
	width:109px;
	height:76px;
	display:block;
	float:left;
	margin:0px auto;
	margin-right:20px;
}
ul#iconos li a{

	display:block;
	float:left;
	color:#000;
	text-decoration:none;
	padding:10px 0px 0px 0px;
	height:76px;
	background:transparent no-repeat;
	width: 109px;
	margin:0px auto;
	font-family:"Courier New", Courier, monospace
	}
ul#iconos li a:hover{
	padding:0px 0px 0px 0px;
	background:transparent no-repeat;	
	}

/*Fin de iconos en cabecera*/
/*Fin cabecera*/
/*Contenido*/

#contenido {
	max-width:900px;
	position:relative;
	background:#232323;
	clear:both;
	float:left;
	height:199px;
	border:solid 1px #3D3B3C;
	margin-top:25px;
	margin-left:53px;
	width:898px;
}

/*Dentro del contenido*/

.descripcion1 {
	background:transparent;
	width:280px;
	margin-left:10px;
	margin-top:10px;
	margin-bottom:10px;
	border-right:solid #808080 3px;
}

/*Fin de dentro del contenido*/
/*Fin de contenido*/
y este es el html (esta vació, porque solo estoy probando)

Código HTML:
<!DOCTYPE html PUBLIC"-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3c.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="es" xml:lang="es">
<head>
<meta http-equiv ="Content - Type "content=" text/html;charset=ISO-8859-1"/>
<meta name="keywords" content="estudio, carreras, cursos, postgrados, enseñanza, ocio"/>
<meta name="description" content="Articulos sobre carreras universitarias, cursos tecnicos, cursos de actualizacion, postgrados"/>
<meta name="copyright" content="dondestudiar.com" />
<title>ON FLOW Diseño Web Integral</title >
<link type="text/css" rel="stylesheet" href="style.css"/>
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="ie-style.css" />
<![endif]-->
</head>

<body>
<div id="cabecera">
        <div id="menu">
            <ul id="iconos">
              <li><a href="servicios.html"><img src="images/servicios.gif" width="109" height="76" border="0" alt="Servicios" /></a></li>
                <li><a href="quienes-somos.html"><img src="images/quienesomos.gif" width="109" height="76" border="0" alt="quienes somos" /></a></li>
                <li><a href="contacto.html"><img src="images/contacto.gif" width="109" height="76" border="0" alt="Contacto" /></a></li>
            </ul>
        </div>
    </div>
    <div id="contenido" class="redondear">
    </div>
</body>
</html> 
el error esta en el div del contenido (<div id="contenido" class="redondear">) intenten modificar su height desde css, ocea aumentarlo, y vean que aparece un scroll horizontal ¿porque?
__________________
Visita la mejor web: http://infoadictos.net