octocatstartv

rGofw

A Pen By Captain Anonymous

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource
via CSS Lint

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource
via JS Hint

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Want a Run Button?

If active, the preview will update automatically when you change code.

HTML

            
              <div id="menu">
  <ul>
    <li><a href="@">Úvod</a></li>
    <li><a href="@">DotA</a>
      <ul>
        <li><a href="@">O hře</a></li>
        <li><a href="@">Ke stažení</a></li>
      </ul>
    </li>
    <li><a href="@">Dota2</a>
      <ul>
        <li><a href="@">Hrdinové</a>
          <ul>
            <li><a href="@">Radiant</a></li>
            <li><a href="@">Dire</a></li>
          </ul>
        </li>
        <li><a href="@">Předměty</a></li>
        <li><a href="@">Tipy a Triky</a></li>
        <li><a href="@">HW nároky</a></li>
      </ul>
    </li>
    <li><a href="@">Turnaje</a>
      <ul>
        <li><a href="@">Amerika</a>
          <ul>
            <li><a href="@">The International</a></li>
          </ul>
        </li>
        <li><a href="@">Evropa</a>
          <ul>
            <li><a href="@">Starladder</a></li>
            <li><a href="@">Premier Leadue</a></li>
            <li><a href="@">Raidcall ESM</a></li>
          </ul>
        </li>
        <li><a href="@">Čína</a>
          <ul>
            <li><a href="@">G-1 League</a></li>
            <li><a href="@">Super League</a></li>
          </ul>
        </li>
      </ul>
    </li>
    <li><a href="@">Galerie</a></li>
    <li><a href="@">Formulář</a></li>
    <li><a href="@">Kontakt</a></li>
  </ul>
</div>
            
          
!

CSS

            
              #menu{
	text-align: center;
	background: none;
	line-height: 36px;
}
#menu ul{
	padding:0px !important;

}
#menu ul li:hover > ul{
	display: block;
	background-position: top;
}
#menu ul li{
	float: left;
	list-style: none;
}
#menu ul ul{
		display: none;
}
#menu ul li:hover {
	background: white;
	color:red;
}
#menu ul li {
	padding: 0px 0px;
	border-right: 1px solid #0CF;
}
#menu ul ul li {
	padding: 0px 0px;
	border-right: none;
}
#menu ul {
	display: inline-table;
	padding: 0px 9px;
	position: relative;
}
#menu ul ul li {
	float: none;
	border-bottom: 2px solid #000;
	position: relative;
}
#menu ul ul {
	position: absolute;
	padding: 0 0px;
}
#menu ul ul ul a {
	padding: 0 0px;
}
#menu ul ul ul {
	position: absolute;
	left: 100%;
	top: 0%;
}
#menu ul li a {
	display: block;
	padding: 10px 30px;
}
#menu ul ul li a {
	display: block;
	padding: 20px 30px;
}
#menu ul ul {
	background: red;
}
ul {
	background-color:red;
}
#menu ul ul li a:hover {
	background: #fff;
	display: block;
	color:red;
}
#menu ul ul {
	border-radius: 0px;
}
/*menu text*/
a {
	font-family: Shrewsbury, JasmineUPC, "Iskoola Pota";
	color: white;
	font-size: 22px;
	font-weight: lighter;
	text-decoration: none;
}
ul li:hover > a{
	color:red;
}
/*for level 3 double line problem*//*use it if you want larger level 3 box*//*this reduces the size of level 2 box*/

/*#menu ul ul ul li{
	line-height:18px;;
	padding:0px;
}*/
            
          
!

JS

            
              
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console