JSFiddle - React, Tailwind, and code Playground
by Denis
HTML
<div class="wrapper">
<div class="wrap">
<div class="content">
<p>Content</p>
<p>Content</p>
<p>Content</p>
<p>Content</p>
<p>Content</p>
</div> <!-- end content -->
<div class="sidebar">
<p>Sidebar</p>
<p>Sidebar</p>
<p>Sidebar</p>
</div> <!-- end sidebar -->
</div>
<div class="footer">
<div class="wrap">
<p>footer</p>
</div>
</div> <!-- end footer -->
</div> <!-- end wrapper -->
CSS
* {
padding: 0;
margin: 0;
}
.wrapper {
position: relative;
min-width: 930px;
background: red;
}
.wrap {
position: relative;
margin: 0px auto;
width: 930px;
z-index: 2;
}
.wrap:after {
display: block;
content: '';
clear: both;
width: 100%;
height: 0px;
}
.content {
position: relative;
float: left;
width: 640px;
box-shadow: 0px 5px 40px 0px rgba(0, 0, 0, 0.05);
text-shadow: 0px 5px 40px rgba(0, 0, 0, 0.05);
border-radius: 0 0 10px 0;
-moz-border-radius: 0 0 10px 0;
-webkit-border-radius: 0 0 10px 0;
-khtml-border-radius: 0 0 10px 0;
background: #fff;
}
.content:before {
display: block;
content: '';
position: absolute;
top: 0px;
bottom: 0px;
right: 100%;
width: 3400px;
background: #fff;
}
.sidebar {
float: right;
width: 290px;
}
.footer {
position: relative;
bottom: 0px;
z-index: 0;
padding: 50px 0;
background: red;
}