Dropdown Menu
How do I make an dropdown menu?
A clean responsive navigation w. subleveled menus. Scripts N/A. What is a dropdown menu? How do you make a dropdown menu? This script and codes were developed by Daniel on 24 September 2022, Saturday.
Dropdown Menu - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Dropdown Menu</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <!-- FONT API-->
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,700,900' rel='stylesheet' type='text/css'>
<!-- ICON API-->
<link rel="stylesheet" href="http://fontawesome.io/assets/font-awesome/css/font-awesome.css">
<div class='menuwrap'> <nav id='menu'> <input type='checkbox'/> <li><a href='#'> <i class="fa fa-angle-down" aria-hidden="true" style="font-size:20px;margin-right:10px;line-height:48px;"></i> Dropdown <font size='1'> </a> <ul class='menus'> <li><a href='#'>Submenu Tab 1</a></li> <li><a href='#'>Submenu Tab 2</a></li> <li><a href='#'>Submenu Tab 3</a></li> </ul> </li> </ul> </nav>
</div> <script src="js/index.js"></script>
</body>
</html>
Dropdown Menu - Script Codes CSS Codes
/*BASE CSS STYLE FOR RESPONSIVE MENU*/
/*START*/
#menu{
/*Rev 140508*/ width:auto; max-width:300px; height: 48px; line-height:48px; margin:0 auto; position:relative; overflow:no-display; /**/ color: #FFF; background: #222; border-bottom: 0px solid #222;
}
#menu ul,#menu li{ margin:0 auto; padding:0 0; list-style:none;
}
#menu ul{ height:45px;
width:300px!important;}
#menu li{ float:left; display:inline; position:relative; font:0.9em 'Lato', sans-serif; /*font-weight:700;*/
}
#menu a{/*main menu*/ display: block; font-size:120%; line-height: 45px; padding: 0 14px; text-decoration: none; color: #dedede;
}
#menu li a:hover{ color:#fff;
-webkit-transition: all .3s ease-in-out;
-moz-transition: all .3s ease-in-out;
-ms-transition: all .3s ease-in-out;
-o-transition: all .3s ease-in-out;
transition: all .3s ease-in-out;
}
#menu input{display:none;margin:0 0;padding:0 0;width:80px;height:30px;opacity:0;cursor:pointer
}
#menu label{ font:normal 20px Arial; display:none; width:35px; height:36px; line-height:36px; text-align:center; float:right;
}
/*BRAND*/
#menu label span{font-size:80%;position:absolute;left:35px;}
#menu ul.menus{/*SUBMENUS*/ height: auto; overflow: hidden; background: #383838; position: absolute; z-index: 99; display: none;
}
#menu ul.menus li{
display: block;
width: 100%;
font:normal 100% Arial;
text-transform: none;
text-shadow: none;
}
#menu ul.menus a{
color: #FFF;
line-height: 40px; /*REV*/ -webkit-transition: all .6s ease-in-out;
-moz-transition: all .6s ease-in-out;
-ms-transition: all .6s ease-in-out;
-o-transition: all .6s ease-in-out;
transition: all .6s ease-in-out;
}
#menu li:hover ul.menus{display:block;}
#menu ul.menus a:hover{
background: #bebebe;
color: #222;
-webkit-transition: all .1s ease-in-out;
-moz-transition: all .1s ease-in-out;
-ms-transition: all .1s ease-in-out;
-o-transition: all .1s ease-in-out;
transition: all .1s ease-in-out;
}
/*END*/
/*BASE CSS STYLE FOR RESPONSIVE MENU*/
/**/
/*MOBIL VERSION, 0 > 600px*/
@media screen and (max-width: 600px){ #menu{ position:relative; color:#fff; background:#222; border-bottom: 0px solid #222; }
#menu ul{ top:100%; left:0; height:auto; display:none; position:absolute; z-index:3; background:#555; }
#menu ul.menus{ width:100%; position:static; padding-left:0px;
}
#menu li{ font:normal 90% Arial; width:auto; display:block; float:none;
}
#menu input,#menu label{ margin:0 0%; float:right; display:block; position:absolute;
}
#menu input{z-index:4;}
#menu input:checked + label{color:#fff}
#menu input:checked ~ ul{display:block}
}
/*End Media Queries*/
/*End CSS*/
Dropdown Menu - Script Codes JS Codes
/*
Dropdown Menu
Beta v0.1
**/
/*
Project: Simple scriptfree DropDown Menu.
Project initiated: June 2016
Project pre-ended: June 2016
Subject Info:
*/
Developer | Daniel |
Username | deeman |
Uploaded | September 24, 2022 |
Rating | 3 |
Size | 2,905 Kb |
Views | 30,360 |
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 |
Sitemap for footer | 2,271 Kb |
A Pen by Daniel | 1,860 Kb |
The Awesome Responsive Form | 2,377 Kb |
Top Header w. shadowed bottom | 1,578 Kb |
Sitemap | 1,667 Kb |
Imagelinking | 1,412 Kb |
Box w. images v0.1 | 1,932 Kb |
Subleveled Menu - Responsive and simple | 4,471 Kb |
RWD Table v1.0 | 2,187 Kb |
Box v0.1 | 2,187 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 |
A Pen by James Podles | Jpod | 2,656 Kb |
Login with flip 3d animation | Mariusbalaj | 3,014 Kb |
Parallax-ish Sliding Content | Jdsteinbach | 2,748 Kb |
Large canvas mousemove experiment | Jibbon | 2,885 Kb |
Brent Burns Tribute Page | Nevada48 | 2,569 Kb |
Filtre ile Arama Kutusu - Search Box with Filter | AyhanALTINOK | 3,448 Kb |
Electric worm | Jeffibacache | 2,377 Kb |
Incremental game | Eprouver | 5,868 Kb |
Ipad Mini Showcase | Hornebom | 10,479 Kb |
Flex layout example | Mofny | 1,663 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!