Hola buenos días, tengo un problema con el cual me podrían ayudar. Estoy haciendo una web con porcentajes para que se vaya ajustando mientras mas chica es la pantalla. Mi problema es que el div del menu cuando se va achicando queda debajo del div con el contenido. Alguien sabe como arreglar eso? Necesitaria que el div del contenido quede DEBAJO automaticamente. les dejo el código.
Código HTML:
Ver original<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="description" content="" /> <meta name="keywords" content="" />
<link href='img/favicon.png' rel='shortcut icon' type='image/png'/>
<link rel="stylesheet" href="css/reset.css" media="all" /> <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
<a href="index.html">Club de Danza
</a>
<form action="/search" id="sidebar_search" method="get"> <input autocomplete="off" class="search_input" name="query" placeholder=" Buscar artistas y estudios"> <button class="search_button" type="submit" title="Buscar artistas y estudios">Buscar artistas y estudios
</button>
<li><a href="#" class="current">Inicio
<span class="separador">|
</span></a></li> <li><a href="#">Audiciones y Convocatorias
<span class="separador">|
</span></a></li> <li><a href="#">Clasificados
<span class="separador">|
</span></a></li> <li><a href="#">Cursos y Talleres
</a></li>
<div id="mainContentLeft"> <div class="articleImg"><img src="images/articulos/203693_7593.jpg" width="218" height="145" alt="articleImg"/></div> <span class="articleEpigrafe">Ep
ígrafe
</span> <span class="articleTitulo">T
ítulo del Art
ículo
</span> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry...
</p> <a href="#">Leer m
ás
</a>
<div class="articleImg"><img src="images/articulos/732197_26596117.jpg" width="218" height="145" alt="articleImg"/></div> <span class="articleEpigrafe">Ep
ígrafe
</span> <span class="articleTitulo">T
ítulo del Art
ículo
</span> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry...
</p> <a href="#">Leer m
ás
</a>
<div class="articleImg"><img src="images/articulos/736302_32713694.jpg" width="218" height="145" alt="articleImg"/></div> <span class="articleEpigrafe">Ep
ígrafe
</span> <span class="articleTitulo">T
ítulo del Art
ículo
</span> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry...
</p> <a href="#">Leer m
ás
</a>
<div class="articleImg"><img src="images/articulos/750900_91551630.jpg" width="218" height="145" alt="articleImg"/></div> <span class="articleEpigrafe">Ep
ígrafe
</span> <span class="articleTitulo">T
ítulo del Art
ículo
</span> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry...
</p> <a href="#">Leer m
ás
</a>
<div class="articleImg"><img src="images/articulos/1069896_60158036.jpg" width="218" height="145" alt="articleImg"/></div> <span class="articleEpigrafe">Ep
ígrafe
</span> <span class="articleTitulo">T
ítulo del Art
ículo
</span> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry...
</p> <a href="#">Leer m
ás
</a>
<div class="articleImg"><img src="images/articulos/1386581_51264205.jpg" width="218" height="145" alt="articleImg"/></div> <span class="articleEpigrafe">Ep
ígrafe
</span> <span class="articleTitulo">T
ítulo del Art
ículo
</span> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry...
</p> <a href="#">Leer m
ás
</a> <!-- end mainContentLeft-->
Código CSS:
Ver originalbody {
color: #333;
direction: ltr;
font-family: 'lucida grande',tahoma,verdana,arial,sans-serif;
font-size: 11px;
line-height: 1.28;
text-align: left;
}
#mainWrap {
width:100%;
height:100%;
overflow:hidden;
position:relative;
}
#pinkbar {
background-color:#e0104c;
/*
background-image:url(../images/colorbanner.jpg); */
background-repeat:repeat-x;
height:45px;
position:fixed;
width:100%;
}
#pageLogo {
float:left;
padding-top:10px;
padding-left:10px;
}
#pageLogo a {
background-image:url(../images/club.png);
background-repeat:no-repeat;
background-size: auto;
display:block;
height:26px;
outline:none;
overflow:hidden;
text-indent:-999px;
white-space:nowrap;
width:180px;
}
#searchbar {
float:right;
padding-top:12px;
padding-right:10px;
height:21px;
}
#searchbar input{
border:none;
height:19px;
margin-right:-4px;
min-width:300px;
}
.search_button {
background-image:url(../images/lupa.jpg);
background-repeat:no-repeat;
border:none;
cursor:pointer;
height:21px;
text-indent:-999px;
width:24px;
z-index:50;
}
/* menuBar 02 */
#menuBar {
background-color:#f5f5f5;
display:block;
font-size:19px;
font-weight:normal;
font-family:'Helvetica',tahoma,verdana,arial,sans-serif;
width: 100%;
min-height:52px;
position:absolute;
margin:45px auto;
clear:both;
}
#menuBar ul {
margin:0 0 0 43px;
padding:0;
list-style-type:none;
}
#menuBar ul li {
display:block;
float:left;
margin:10px 0 0 0;
}
#menuBar ul li a {
display:block;
float:left;
color:#e2104d;
text-decoration:none;
padding:0px 13px 0 0px;
}
#menuBar ul li a:hover {
color:#e2104d;
}
#menuBar ul li a.current {
color:#000;
}
.separador {
color:#c8c8c8;
}
#menuBar img{
padding-top:6px;
padding-left:73px;
}
#searchContent {
float:left;
padding-left:819px;
padding-top:15px;
}
.enter_button {
background-image:url(../images/entrar.jpg);
background-repeat:no-repeat;
border:none;
cursor:pointer;
height:41px;
text-indent:-999px;
width:101px;
}
/* End menuBar styles */
/* mainContent 03 */
#mainContent {
/* background:url("../images/patronescs4-01.png")no-repeat; */
width:100%;
margin:0px auto;
}
#mainContentLeft {
background-color:#efedee;
font-family:'Arial',tahoma,verdana,arial,sans-serif;
size:9px;
width:75%;
height:auto;
top:97px;
float:left;
position:absolute;
}
.article {
background-color:#efedee;
width:218px;
height:234px;
margin:9px 0 0 9px;
float:left;
margin-top:9px;
}
.articleImg {
width:218px;
height:145px;
padding-top:5px;
position:relative;
}
.articleEpigrafe {
font-family:'Arial',tahoma,verdana,arial,sans-serif;
font-size:9px;
background-color:#e0104c;
width:213px;
position:absolute;
margin-top:-14px;
padding-left:5px;
}
.articleTitulo {
font-family:'Arial',tahoma,verdana,arial,sans-serif;
font-size:12px;
font-weight:bold;
padding-left:5px;
position:absolute;
padding-top:5px;
}
.article p {
font-family:'Arial',tahoma,verdana,arial,sans-serif;
font-size:10px;
padding-left:5px;
position:relative;
padding-top:15px;
}
.article a{
font-family:'Arial',tahoma,verdana,arial,sans-serif;
font-size:10px;
font-style:italic;
color:#00bbd2;
padding-left:160px;
text-decoration:none;
}
.article a:hover{
font-family:'Arial',tahoma,verdana,arial,sans-serif;
font-size:10px;
font-style:italic;
color:#00bbd2;
padding-left:160px;
text-decoration:underline;
}
/* End mainContent */
Saludos y gracias por la ayuda.