Accordion - Menu
How do I make an accordion - menu?
Main design from http://www.premiumpixels.com/freebies/accordion-style-navigation-psd/. What is a accordion - menu? How do you make a accordion - menu? This script and codes were developed by Alexander Nastase on 21 August 2022, Sunday.
Accordion - Menu - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Accordion - Menu</title> <link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css" rel="stylesheet">
<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <ul id="accordionMenu"> <li><i class="icon-user"></i> Profile</li> <li><i class="icon-envelope"></i> Messages <span>32</span></li> <ul class="submenu"> <li><i class="icon-angle-right"></i> Inbox</li> <li><i class="icon-angle-right"></i> Sent</li> <li><i class="icon-angle-right"></i> Drafts</li> </ul> <li><i class="icon-cog"></i> Settings</li> <li><i class="icon-off"></i> Logout</li>
</ul> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
Accordion - Menu - Script Codes CSS Codes
html { background:url("http://subtlepatterns.com/patterns/wood_pattern.png") fixed; }
#accordionMenu { display:block; min-width:220px; position:absolute; top:50%; left:50%; -webkit-transform: translate(-50%, -50%); -moz-transform: translate(-50%, -50%); transform: translate(-50%, -50%); background:#262e37; margin:0px; padding:0px; border-radius:5px; box-shadow: 0 0 0 3px rgba(0,0,0,.15), 0px 15px 50px 10px rgba(0,0,0,0.7), inset 0 2px rgba(255,255,255,.07); border: solid 1px #181e26; font-size:15px; color:#c9d1e3; font-family:Arial; overflow:hidden; }
#accordionMenu>li { position:relative; cursor:pointer; list-style:none; margin:0px; padding:11px; background: #383d49; border-bottom:solid 1px #1e2127; box-shadow: inset 0 1px rgba(255,255,255,.07); background-image: -webkit-linear-gradient(bottom, rgba(0,0,0,.08), rgba(255,255,255,.08)); background-image: -moz-linear-gradient(bottom, rgba(0,0,0,.08), rgba(255,255,255,.08)); background-image: -o-linear-gradient(bottom, rgba(0,0,0,.08), rgba(255,255,255,.08)); background-image: -ms-linear-gradient(bottom, rgba(0,0,0,.08), rgba(255,255,255,.08)); background-image: linear-gradient(to top, rgba(0,0,0,.08), rgba(255,255,255,.08)); text-shadow:1px 1px #1a2026; } #accordionMenu>li:last-of-type { border-bottom:none; } #accordionMenu>li>i { margin-right:5px; font-size:14px; } #accordionMenu>li>span { float:right; font-size:10px; display:inline-block; color:#a8c2d8; font-weight:bold; padding:0px 7px 3px 7px; border-radius: 3px; background-color: #464c5a; box-shadow: 0 1px 3px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.1); background-image: -webkit-linear-gradient(bottom, rgba(0,0,0,.1), rgba(255,255,255,.1)); background-image: -moz-linear-gradient(bottom, rgba(0,0,0,.1), rgba(255,255,255,.1)); background-image: -o-linear-gradient(bottom, rgba(0,0,0,.1), rgba(255,255,255,.1)); background-image: -ms-linear-gradient(bottom, rgba(0,0,0,.1), rgba(255,255,255,.1)); background-image: linear-gradient(to top, rgba(0,0,0,.1), rgba(255,255,255,.1)); }
#accordionMenu>.submenu { background:url("http://subtlepatterns.com/patterns/noisy_net.png")fixed; margin:0px; padding:13px 10px 13px 0px; } #accordionMenu>.submenu>li { cursor:pointer; list-style:none; text-shadow:1px 1px #1a2026; color:#798ea1; font-size:12px; font-weight:bold; text-transform:uppercase; margin:6px 0px 6px 15px; }
#accordionMenu>.submenu>li>i { margin:0px 10px 0px 0px; }
Developer | Alexander Nastase |
Username | anodpixels |
Uploaded | August 21, 2022 |
Rating | 3 |
Size | 2,356 Kb |
Views | 26,312 |
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 |
Carousel_listing | 45,147 Kb |
CSS spinning loader | 2,244 Kb |
Right Click Menu | 2,252 Kb |
Old Browser Warning | 2,198 Kb |
Tryout_slider | 1,811 Kb |
Pressable CSS Buttons | 4,863 Kb |
Target effect | 2,163 Kb |
Accordion - Menu | 2,356 Kb |
Target effects | 1,855 Kb |
Simple Tabs | 2,131 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 |
Import shader in three.js | Khangeldy | 2,636 Kb |
Haml Calendar | Katydecorah | 5,643 Kb |
AngularJS Skills | Supro | 3,312 Kb |
A Pen by Final Boss tommyb9 | FBtommyb9 | 55,354 Kb |
Toggle Time | Petebot | 5,345 Kb |
Web Spiral - p5.js | TWAIN | 2,183 Kb |
Svg sky | Omodev | 7,070 Kb |
Filtering with shuffle.js | Deyand | 2,712 Kb |
Awesome textarea | Ayoungh | 1,977 Kb |
CSS3 keyframe onload animation. | Samueljseay | 1,706 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!