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 |
3D box | 2,899 Kb |
Dropdown navigation | 3,158 Kb |
Animates search input with only css | 4,335 Kb |
Custom input radio buttons | 2,158 Kb |
Horizontal navigation | 2,183 Kb |
Sidenavigation | 3,421 Kb |
Button hover effects | 3,642 Kb |
Parallax scrolling background | 3,403 Kb |
Search field | 2,280 Kb |
Automatic scroll | 4,042 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 |
Rrremark.com Overlay Highlighter | Derickruiz | 4,438 Kb |
Side Sliding Menu CSS | EduardL | 4,388 Kb |
Tic Tac Toe | Volv | 4,862 Kb |
Caputre Cam with JS | KimmoCommit | 2,795 Kb |
Siema - add pagination to prototype | Pawelgrzybek | 2,575 Kb |
Buttons with style | Chbymnky | 2,082 Kb |
Colorful Sliders | Chanrith | 1,246 Kb |
This in constructor context | _shree33 | 1,718 Kb |
Animated bar chart | CreativePunch | 3,124 Kb |
Hmmm... | Rk007 | 4,848 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!