Dropdown navigation
How do I make an dropdown navigation?
A simple dropdown navigation with only css.. What is a dropdown navigation? How do you make a dropdown navigation? This script and codes were developed by Sander on 18 December 2022, Sunday.
Dropdown navigation - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Dropdown navigation</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="wrapper"> <div class="top"> <ul class="navigation"> <li><a title="Home">Home</a></li> <li><a title="About us">About us</a></li> <li><a title="Portfolio">Portfolio</a> <ul> <li><a title="Websites">Websites</a></li> <li><a title="Webshops">Webshops</a></li> <li><a title="SEO">SEO</a></li> <li><a title="Responsive webdesign">Responsive webdesign</a></li> </ul> </li> <li><a title="Contact">Contact</a></li> </ul> </div> <div class="content-container"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse mollis vulputate enim, a dictum velit aliquam id. Curabitur efficitur eleifend justo, eu congue magna. Donec vel aliquam felis. Proin non nulla dignissim, venenatis lectus eget, efficitur tellus. Nullam accumsan a neque in porta. Cras accumsan rutrum urna vitae sodales. Maecenas placerat augue risus, sit amet efficitur metus vulputate id. Sed arcu ante, pretium at fringilla sed, fermentum id justo.</p> </div>
</div>
</body>
</html>
Dropdown navigation - Script Codes CSS Codes
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800);
* { padding: 0; margin: 0; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;
}
body { font-family: 'Open Sans', sans-serif; line-height: 1.4em; background: #e5e5e5;
}
p { margin-bottom: 1em;
}
.wrapper { max-width: 640px; padding: 20px; margin: 20px auto; background: #fff; border: solid 1px #e0e0e0;
}
.navigation { list-style: none; padding: 0; margin: 0; background: #179770; overflow-x: hidden;
}
.navigation li { float: left;
}
.navigation li:hover { background: #148160;
}
.navigation li:first-child { border-radius: 5px 0 0 5px;
}
.navigation li a { display: block; padding: 10px 20px; text-decoration: none; line-height: 40px; color: #fff; cursor: pointer;
}
.navigation ul { display: none; position: absolute; list-style: none; padding: 0; overflow: hidden;
}
.navigation ul li { float: none;
}
.navigation li:hover > ul { display: block; background: #148160; border-top: 0; border-radius: 0 0 8px 8px;
}
.navigation li:hover > ul li:hover { border-radius: 0 0 5px 5px;
}
.navigation li li a:hover { background: #148160;
}
.content-container { padding: 20px;
}
Developer | Sander |
Username | skeurentjes |
Uploaded | December 18, 2022 |
Rating | 3 |
Size | 3,158 Kb |
Views | 10,120 |
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 |
Animates search input with only css | 4,335 Kb |
Search field | 2,280 Kb |
Image clip path mask | 3,911 Kb |
Spinning loader | 2,038 Kb |
Horizontal navigation | 2,183 Kb |
Sidenavigation | 3,421 Kb |
Flexbox table | 4,118 Kb |
Parallax scrolling background | 3,403 Kb |
Sticky widget | 3,762 Kb |
Side navigation | 3,043 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 |
Price table | Serluk | 5,928 Kb |
Login-ng-modal | Heedoo | 3,566 Kb |
Barber Shop | Bhlaird | 6,270 Kb |
Large canvas mousemove experiment | Jibbon | 2,885 Kb |
Vue.js | Thommyboy02 | 1,506 Kb |
Calendar | Miroot | 2,033 Kb |
Process Accordion | Devilskitchen | 31,432 Kb |
Bubble animation | Ftabor | 6,565 Kb |
Heartbeat | Apetrov | 2,079 Kb |
3D Text in Sass | Bookcasey | 2,766 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!