JSFiddle - React, Tailwind, and code Playground
by Senja
HTML
<body>
<div id="wrap">
<div id="navigation">
<ul>
<li><a href="">Пункт 1</a></li>
<li><a href="">Пункт 2</a>
<ul>
<li><a href="">Подпункт 1</a>
<ul>
<li><a href="">Подпункт 1-1</a></li>
<li><a href="">Подпункт 1-2</a></li>
</ul>
</li>
<li><a href="">Подпункт 2</a>
<ul>
<li><a href="">Подпункт 2-1</a></li>
<li><a href="">Подпункт 2-2</a></li>
<li><a href="">Подпункт 2-3</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="">Пункт 3</a></li>
<li><a href="">Пункт 4</a></li>
</ul>
</div>
</div>
</body>
CSS
* {
margin: 0;
padding: 0;
}
html,
body {
height: 100%;
}
body {
background: #fbf7f5 url("http://i63.fastpic.ru/big/2015/0119/8b/6719f06dc4634731a4357a1e966a288b.jpg") repeat;
font: 14px/22px Arial, Verdana, Tahoma, sans-serif;
color: #444;
}
a {
color: #0083df;
text-decoration: none;
}
#wrap {
width: 980px;
margin: 0 auto;
background-color: white;
min-height: 100%;
position: relative;
}
#navigation {
height: 43px;
background: transparent url("http://i63.fastpic.ru/big/2015/0119/4b/e7710aea9cd4cf97e0d6c3c3d206244b.png") repeat-x;
clear: both;
}
#navigation>ul {
height: 40px;
}
#navigation>ul>li {
float: left;
border-right: 1px solid #444;
list-style-type: none;
position: relative;
}
#navigation>ul>li>a {
font-weight: bold;
color: white;
text-decoration: none;
text-shadow: 0 1px 0 rgba(0,0,0,0.25);
display: block;
line-height: 14px;
padding: 13px 23px;
border-right: 1px solid #333;
}
#navigation>ul>li:first-child>a {
padding-left: 29px;
}
#navigation>ul>li>a:hover,
#navigation>ul>li.active>a {
background-color: #333;
color: #76e16e;
}
#navigation>ul ul {
width: 200px;
background-color: #333;
border-radius: 0 0 3px 3px;
-webkit-border-radius: 0 0 3px 3px;
-moz-border-radius: 0 0 3px 3px;
position: absolute;
top: 40px;
display: none;
}
#navigation>ul ul li:hover ul {
width: 200px;
background-color: #333;
border-radius: 0 0 3px 3px;
-webkit-border-radius: 0 0 3px 3px;
-moz-border-radius: 0 0 3px 3px;
position: absolute;
top:40px;
left:200px;
display: block;
}
#navigation>ul>li:hover>ul {
display: block;
}
#navigation>ul>li>ul>li {
list-style-type: none;
}
#navigation>ul>li>ul>li>a {
display: block;
font-size: 12px;
color: #eee;
padding: 10px 23px;
line-height: 12px;
border-top: 1px solid #444;
text-decoration: none;
}
#navigation>ul>li>ul>li>a:hover {
background-color: #222;
}