1.html
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<link href="styles/autoresolution.css" rel="stylesheet" />
</head>
<body>
<div class="page">
<div class="left">
left
</div>
<div class="right">
right
</div>
<div class="clear">
</div>
<div class="bottom">
bottom
</div>
</div>
</body>
</html>
2.style sheet
body {
100%;
}
/*basic universal settings for page main parts*/
.page {
background-color: #fff;
}
.page > .left {
background-color: #f00;
float: left;
}
.page > .right {
background-color: #f0f;
float: right;
}
.page > .bottom {
background-color: #00f;
100%;
}
.clear {
clear: both;
}
/*page width bigger than 1024 strategy*/
@media screen and (min-1024px) {
.left {
40%;
}
.right {
60%;
}
}
@media screen and (max-1024px) {
.left {
100%;
}
.right {
100%;
}
}