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 |
Old Browser Warning | 2,198 Kb |
CSS CREATURE | 1,916 Kb |
Target effects | 1,855 Kb |
Tryout_slider_done | 2,104 Kb |
Tryout_slider | 1,811 Kb |
Simple Tabs | 2,131 Kb |
Nifty Slider | 5,012 Kb |
MaintenanceFastPage | 2,608 Kb |
Fixed menu on top when scroll | 1,599 Kb |
Layout Experimentation Animation | 1,929 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 |
Menubar compass mixin | Michaelparenteau | 4,925 Kb |
Sticky menu on scroll | Senff | 2,869 Kb |
CSS Heart Loaders | Nourabusoud | 2,161 Kb |
CSS Bot Confusion | Jpod | 3,456 Kb |
CSS Grid Test | Ajaykarwal | 2,377 Kb |
Subtle site navigation with description | Necks | 3,206 Kb |
Marching Squares Visualized | Sakri | 7,074 Kb |
A Pen by Malith Hettiarachchi | MalZiiirA | 5,531 Kb |
Falling Down the Rabbit Hole | Rachelnabors | 4,578 Kb |
Header | Er40 | 1,542 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!