JSFiddle - React, Tailwind, and code Playground
by Denis
HTML
<body>
<div class="wrapper">
<div class="background"></div>
<div class="wrap">
<div class="content">
<p>line1</p>
<p>line2</p>
<p>line3</p>
<div class="head">
<nav class="top-menu">
<ul>
<li><a href="#">О проекте</a></li>
<li><a href="#">Реклама</a></li>
<li><a href="#">Правила</a></li>
<li><a href="#">Контакты</a></li>
<li><a href="#">Карта сайта</a></li>
</ul>
</nav>
</div>
</div> <!-- end content -->
<div class="sidebar">
<div class="head">
<div class="head-social">
<p>line1</p>
<p>line2</p>
<p>line3</p>
<p>line4</p>
</div>
</div>
</div> <!-- end sidebar -->
</div> <!-- end wrapper -->
</div> <!-- end wrapper -->
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="js/script.js"></script>
</body>
CSS
/* General
------------------*/
html, body {
height: 100%;
background: #bbb;
margin: 0;
padding: 0;
}
/* End General
------------------*/
/* Wrapper, background ,Wrap
------------------*/
.wrapper {
position: relative;
min-width: 932px;
}
.wrapper:before {
content: '';
position: absolute;
width: 50%;
top: 0px;
bottom: 0px;
z-index: 0;
left: 0px;
background: #fff;
}
.wrapper:after {
content: '';
position: absolute;
width: 50%;
top: 0px;
bottom: 0px;
z-index: 0;
right: 0px;
background: #bbb;
}
.background {
position: absolute;
margin-left: -465px;
width: 932px;
left: 50%;
top: 0px;
bottom: 0px;
z-index: 1;
}
.background:before {
content: '';
position: absolute;
width: 640px;
left: 0px;
top: 0px;
bottom: 0px;
z-index: 0;
right: 0px;
background: #fff;
border-radius: 0 0 10px 0;
}
.background:after {
content: '';
position: absolute;
width: 290px;
right: 0px;
top: 0px;
bottom: 0px;
z-index: 0;
right: 0px;
background: #bbb;
}
.wrap {
position: relative;
margin: 0 auto;
width: 935px;
z-index: 2;
}
/* End Wrapper, background, Wrap
------------------*/
/* Content
------------------*/
.content {
display: inline-block;
width: 640px;
background: #fff;
border-radius: 0 0 10px 0;
vertical-align: top;
}
.content .head {
}
/* Top-menu
------------------*/
.content .head .top-menu {
}
.content .head .top-menu ul {
display: inline-block;
}
.content .head .top-menu ul li {
float: left;
list-style-type: none;
position: relative;
}
.content .head .top-menu ul li a {
font-size: 12px;
display: block;
color: #9e9e9e;
text-decoration: none;
margin: 0 35px 0 0;
font-family: Arial, sans-serif;
font-style: normal;
}
.content .head .top-menu ul li a:hover {
color: #000;
}
/* End...