Menu in columns
How do I make an menu in columns?
What is a menu in columns? How do you make a menu in columns? This script and codes were developed by Khoné Vongsouthi on 02 December 2022, Friday.
Menu in columns - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Menu in columns</title> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ /* NAV - Global */
.nav-lvl-1-item,
.nav-lvl-2-item { display: block; float: left;
}
.nav-lvl-1,
.nav-lvl-2 { margin: 0; padding: 0;
}
.nav-panel,
.nav-lvl-2,
.nav-lvl-2-item { width: 200px;
}
.nav-lvl-1-name,
.nav-lvl-2-name { display: inline-block; text-decoration: none; color: #fff;
}
.nav-lvl-1-item,
.nav-lvl-2,
.nav-lvl-2-name { transition: all .3s ease-in-out;
}
#nav,
.nav-lvl-1,
.nav-lvl-2 { float: left;
}
.nav-lvl-1-item { position: relative; overflow: hidden; background: #ddd; cursor: pointer;
}
.nav-lvl-1-item + .nav-lvl-1-item { margin-left: 10px;
}
.nav-lvl-1-item:hover,
.nav-lvl-1-item:focus { background: #222;
}
.nav-panel { display: table-cell; padding: 10px; height: 380px; text-align: right; vertical-align: bottom;
}
.nav-lvl-1-name { font-size: 30px; line-height: 30px; text-transform: uppercase;
}
.nav-lvl-2 { margin: 10px 0 -110%; /*padding-bottom: 100px;*/ height: 190px;
}
.nav-lvl-1-item:hover .nav-lvl-2,
.nav-lvl-1-item:focus .nav-lvl-2,
.nav-lvl-1-name:hover + .nav-lvl-2,
.nav-lvl-1-name:focus + .nav-lvl-2,
.nav-lvl-1-name:active + .nav-lvl-2 { margin-bottom: auto;
}
.nav-lvl-2-name,
.nav-lvl-2-name:link,
.nav-lvl-2-name:visited { font-weight: bold; font-size: 12px; opacity: .1;
}
a.nav-lvl-2-name:hover,
a.nav-lvl-2-name:focus,
a.nav-lvl-2-name:active { opacity: 1;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <nav id="nav" role="navigation"> <ul class="nav-lvl-1"> <li class="nav-lvl-1-item"> <div class="nav-panel"> <strong class="nav-lvl-1-name">Work</strong> <ul class="nav-lvl-2"> <li class="nav-lvl-2-item"><a class="nav-lvl-2-name" href="#">Flyer</a></li> <li class="nav-lvl-2-item"><a class="nav-lvl-2-name" href="#">Logo</a></li> <li class="nav-lvl-2-item"><a class="nav-lvl-2-name" href="#">Webdesign</a></li> </ul> </div> </li> <li class="nav-lvl-1-item"> <div class="nav-panel"> <strong class="nav-lvl-1-name">About</strong> <ul class="nav-lvl-2"> <li class="nav-lvl-2-item"><a class="nav-lvl-2-name" href="#">Formation</a></li> <li class="nav-lvl-2-item"><a class="nav-lvl-2-name" href="#">Professional</a></li> </ul> </div> </li> <li class="nav-lvl-1-item"> <div class="nav-panel"> <strong class="nav-lvl-1-name">Contact</strong> <ul class="nav-lvl-2"> <li class="nav-lvl-2-item"><a class="nav-lvl-2-name" href="#">Facebook</a></li> <li class="nav-lvl-2-item"><a class="nav-lvl-2-name" href="#">Twitter</a></li> <li class="nav-lvl-2-item"><a class="nav-lvl-2-name" href="#">Google +</a></li> </ul> </div> </li> </ul>
</nav> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
Menu in columns - Script Codes CSS Codes
/* NAV - Global */
.nav-lvl-1-item,
.nav-lvl-2-item { display: block; float: left;
}
.nav-lvl-1,
.nav-lvl-2 { margin: 0; padding: 0;
}
.nav-panel,
.nav-lvl-2,
.nav-lvl-2-item { width: 200px;
}
.nav-lvl-1-name,
.nav-lvl-2-name { display: inline-block; text-decoration: none; color: #fff;
}
.nav-lvl-1-item,
.nav-lvl-2,
.nav-lvl-2-name { transition: all .3s ease-in-out;
}
#nav,
.nav-lvl-1,
.nav-lvl-2 { float: left;
}
.nav-lvl-1-item { position: relative; overflow: hidden; background: #ddd; cursor: pointer;
}
.nav-lvl-1-item + .nav-lvl-1-item { margin-left: 10px;
}
.nav-lvl-1-item:hover,
.nav-lvl-1-item:focus { background: #222;
}
.nav-panel { display: table-cell; padding: 10px; height: 380px; text-align: right; vertical-align: bottom;
}
.nav-lvl-1-name { font-size: 30px; line-height: 30px; text-transform: uppercase;
}
.nav-lvl-2 { margin: 10px 0 -110%; /*padding-bottom: 100px;*/ height: 190px;
}
.nav-lvl-1-item:hover .nav-lvl-2,
.nav-lvl-1-item:focus .nav-lvl-2,
.nav-lvl-1-name:hover + .nav-lvl-2,
.nav-lvl-1-name:focus + .nav-lvl-2,
.nav-lvl-1-name:active + .nav-lvl-2 { margin-bottom: auto;
}
.nav-lvl-2-name,
.nav-lvl-2-name:link,
.nav-lvl-2-name:visited { font-weight: bold; font-size: 12px; opacity: .1;
}
a.nav-lvl-2-name:hover,
a.nav-lvl-2-name:focus,
a.nav-lvl-2-name:active { opacity: 1;
}
Developer | Khoné Vongsouthi |
Username | khone-vongsouthi |
Uploaded | December 02, 2022 |
Rating | 3 |
Size | 2,715 Kb |
Views | 14,168 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Map | 4,058 Kb |
Language - Selector | 3,551 Kb |
Social navigation in pure CSS3 | 4,061 Kb |
Tooltip | 3,283 Kb |
Datepicker | 3,424 Kb |
Slider | 3,076 Kb |
List | 2,375 Kb |
Menu - Restaurant | 3,741 Kb |
Jumbotron | 3,614 Kb |
Button - Center middle | 2,347 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Ripples in water | Nobitagit | 2,704 Kb |
Tic Tac Toe | Volv | 4,862 Kb |
Guidepopup | Wooljs | 3,747 Kb |
A Pen by lizz | Lizz | 10,068 Kb |
CSS Donut Charts | Seanstopnik | 2,908 Kb |
JQuery exercise | Brian-baum | 3,780 Kb |
NT Tribute | Skybutterfly | 2,850 Kb |
Font stack | Adrianjacob | 1,868 Kb |
CSS3 Latte Art Logo | Esambino | 2,036 Kb |
Emberjs Bootstrap Modal Carousel | Somethingkindawierd | 4,233 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!