Nová ukázka
Reset
Načíst z URL
Uložit a získat odkaz
Vztahuje se k…
Nevyplňujte
Napiště „nejsem robot“
▶
Přepnout zobrazení
Výsledek
<div> <ul class="nav-box"> <ul> <li class="open"> <ul> <li> <a href="">Uvod</a> </li> <li> <a href="">Sbor</a> <ul> <li> <a href="">Zalozeni sboru</a> </li> <li> <a href="">Historie</a> </li> </ul> </li> <li> <a href="">Kontakt</a> </li> </ul> </li> </ul> </ul> </div>
HTML
Autoformát
Standardní režim
Mobilní zobrazení
.nav-box li, .nav-box ul, .nav-box { margin: 0; padding: 0; list-style: none; } .nav-box { position: relative; z-index: 1000; float: left; font-size: 110%; } .nav-box li { float: none; line-height: 1.3em; vertical-align: middle; zoom: 1; position: relative; width: 18.182em; word-wrap: normal; } .nav-box .mod { border: 1px solid #000; background: #323232; width: 18em; margin-bottom: 5px; } .nav-box .mod-1 { margin-top: 10px; overflow: hidden; /*background: #323232;*/ } .nav-box li li { margin-bottom: 1px; background: #000; } .nav-box li h2 { color: #fb8d00; text-transform: uppercase; font-size: 100%; padding: 3px 10px 3px 15px; background: #000; margin-bottom: 1px; font-family: helvetica, arial, verdana, sans-serif; } .nav-box > li { margin-bottom: 10px; } .nav-box li a, .nav-box strong { display: block; color: #ccc; text-decoration: none; padding: 3px 10px 3px 15px; } .nav-box li.box a { background: none; padding: 0; } /***Section 3***/ .nav-box li li ul { border: 1px solid #000; background: #575757; } .nav-box li li li, .nav-box li li li.first { background: #545454; margin: 1px 0 0 0; } .nav-box li li li:first-child { margin: 0; } .nav-box li li li a { color: #ccc; border-bottom: 1px solid #000; } .nav-box li li li:last-child a { border: none; } .nav-box li a:hover, .nav-box li a:active, .nav-box li a:focus, .nav-box li.on strong { position: relative; background-color: #fb9d00; z-index: 599; cursor: pointer; background-position: 8px -492px; color: #000; font-weight: bold; } .nav-box li.on strong { background-position: 6px -591px; cursor: auto; } .nav-box li.on strong a{ padding: 0; color: #000000; background: none; } .nav-box li.on strong a:hover, .nav-box li.on strong a:active, .nav-box li.on strong a:focus{ color: #000000; padding: 0; } .nav-box li.open li.on li strong a{ padding: 0; } .nav-box .open li strong a{ padding: 0; background-color: #fb9d00; font-weight: bold; } .nav-box li.on ul li strong a{ padding: 0; color: #000000; background: none; } .nav-box ul ul { display: none; position: absolute; top: 100%; left: 0; z-index: 1002; } .nav-box ul li { float: none; } .nav-box ul ul, .nav-box ul ul ul { top: -2px; left: 100%; z-index: 1002; } .nav-box li li:hover > ul, .nav-box li li a:focus + ul, .nav-box li.active + ul { display: block; } /***OPEN***/ .nav-box .open ul { position: relative; top: auto; left: auto; display: block; border: none; background: #575757; } .nav-box .open { background: transparent; font-weight: bold; } .nav-box .open > a { background-position: 6px -691px; background-color: #545454; } .nav-box .open li { font-weight: normal; margin: 0; } .nav-box .open li a { border: none; padding-left: 26px; background-position: 18px -392px; margin-top: 1px; color: #fff; } .nav-box li.open li.on li a, .nav-box li.open li.on li.on strong{ padding-left: 36px; background-position: 28px -392px; } .nav-box li.open li.on li.on strong, .nav-box li.open li.on li a:hover, .nav-box li.open li.on li a:active, .nav-box li.open li.on li a:focus { background-position: 28px -492px; } /***HOVER SIDE-NAV***/ .nav-box li.open li ul{ display: none; position: absolute; top: 1px; left: 100%; z-index: 1002; border: 1px solid #000; } .nav-box li.open li:hover > ul, .nav-box li.open li a:focus + ul { display: block; } .nav-box li.open li ul a { border-bottom: 1px solid #000; background-position: 8px -392px; padding-left: 16px; } .nav-box li.open li ul li:last-child a { border:none; }
CSS
Autoformát
CSS reset
Až na konci
J
ava
S
cript
Autoformát
jQuery
Umístění JS
window.onload
</head>
</body>