Hotels main layout
by jslayer
HTML
<div class="w w_e1">
<div class="e5">MINIBLOCK</div>
<div class="e2">E2</div>
<div class="e1">
<div class="e1i">IMAGE</div>
<ul>
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
</ul>
</div>
<div class="e3">E3</div>
<div class="e4">CONTENT</div>
</div>
CSS
body {
font-size: 11px;
font-family: Tahoma;
}
.w {
clear: both;
overflow: hidden;
position: relative;
background: grey;
padding: 5px 205px 5px 5px;
}
.e1 {
width: 100px;
height: 150px;
background: blue;
overflow: hidden;
position: absolute;
left: 5px;
top: 5px;
display: none;
}
.e2 {
background: red;
min-height: 150px;
margin-bottom: 5px;
margin-right: -90px;
}
.e3 {
float: right;
width: 195px;
min-height: 300px;
background: green;
margin-right: -200px;
clear: right;
}
.e4 {
background: yellow;
margin-top: 5px;
clear: left;
padding: 10px;
}
.e5 {
width: 105px;
height: 50px;
float: right;
background: lightgreen;
margin-right: -200px;
margin-bottom: 5px;
}
/* ------------------------------------- */
.e1 a {
color: #fff;
}
.e1 li {
display: block;
width: 25%;
float: left;
text-align: center;
font-weight: bold;
}
.e1 ul {
display: block;
padding: 0;
margin: 0;
clear: both;
overflow: hidden;
position: absolute;
bottom: 5px;
width: 100%;
}
.e1i {
margin: 3px;
background: white;
color: #f00;
height: 116px;
}
.w_e1 {}
.w_e1 .e1 {
display: block;
}
.w_e1 .e2 {
margin-left: 105px;
}
/* ------------------------------------- */
@media only screen and (max-width: 900px) {
.e1 {
position: relative;
top: auto;
left: auto;
width: auto;
height: 180px;
padding-right: 121px;
margin-top: 0;
}
.e2 {
clear: left;
margin-top: 0px;
margin-left: 0 !important;
}
.e3 {
margin-top: -180px;
}
.e1 ul {
width: 120px;
background: white;
height: 180px;
bottom: auto;
right: 0;
top: 0;
}
.e1 li {
text-align: left;
height: 45px;
line-height: 45px;
width: 100%;
}
...