bastele gerade ein theme und da habe ich das problem das wenn man das browserfenster zusammenzieht dann kommt ein horizontaler scrollbalken bevor das design umspringt auf die für 1024 optimierte version. mach ich da einen denkfehler? prozentwerte stimmen doch …
PHP
#wrapper {
width:100%;
background:#ccc;
padding-top:2%;
}
#container {
margin:0 auto;
width:1100px;
}
#header {
width:100%;
background:#efefef;
margin-bottom: 2%;
height:150px;
}
#footer{
width:100%;
background:#efefef;
margin-top: 2%;
height:70px;
}
#content {
float:left;
width:56%;
margin-right:2%;
background:#efefef;
height:800px;
}
#sidebar1 {
float:left;
width:20%;
margin-right:2%;
background:#efefef;
height:800px;
}
#sidebar2 {
float:left;
width:20%;
background:#efefef;
height:800px;
}
@media only screen and (max-width: 1024px) {
#container { width:100%; }
#content { width:78%; }
#sidebar1 {
width:20%;
margin-right:0;
margin-bottom:2%;
}
#sidebar2 {
width:100%;
height:200px;
}
}
Alles anzeigen
anbei das ganze theme als zip: download