CSS Only Dropdown Menus
How do I make an css only dropdown menus?
A dropdown navigation made with HTML and CSS (No Javascript).. What is a css only dropdown menus? How do you make a css only dropdown menus? This script and codes were developed by Matt Shull on 28 September 2022, Wednesday.
CSS Only Dropdown Menus - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS Only Dropdown Menus</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <ul id="nav"> <li class="link"> <div class="linkTitle">Home</div> </li> <li class="link"> <div class="linkTitle">About</div> <ul class="subMenu"> <li class="subLink"> <a href="#">My Life</a> </li> <li class="subLink"> <a href="#">My Family</a> </li> <li class="subLink"> <a href="#">My Job</a> </li> </ul> </li> <li class="link"> <div class="linkTitle">Blog</div> <ul class="subMenu"> <li class="subLink"> <a href="#">Recent Post 1</a> </li> <li class="subLink"> <a href="#">Recent Post 2</a> </li> <li class="subLink"> <a href="#">Recent Post 3</a> </li> </ul> </li> <li class="link"> <div class="linkTitle">Contact</div> </li>
</ul>
</body>
</html>
CSS Only Dropdown Menus - Script Codes CSS Codes
#nav { list-style:none; padding:0; text-align:center;
}
.link { display:inline-block; width:20%; vertical-align: top;
}
.linkTitle { padding:10px;
}
.link:hover > .linkTitle { background-color:lightgray;
}
.link:hover > .subMenu { display:block;
}
.subMenu { display:none; list-style:none; text-align:left;
}
Developer | Matt Shull |
Username | derekshull |
Uploaded | September 28, 2022 |
Rating | 3 |
Size | 1,676 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 |
A Pen by Matt Shull | 3,249 Kb |
CSS Only Parallax | 2,449 Kb |
Tri-Cities Wireframe | 6,726 Kb |
About Me Page | 1,668 Kb |
Javascript Highest Number from List | 1,493 Kb |
Peter Miller Wireframe | 5,182 Kb |
Template Style Prototype | 7,358 Kb |
CSS Animation Example | 1,641 Kb |
Shopping List App | 1,709 Kb |
Inline vs Inline Block vs Block | 1,960 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 |
Addthis_button | Esambino | 1,691 Kb |
A Pen by Jess | Jessamyne | 5,100 Kb |
404 Error Page | WebSonick | 3,203 Kb |
Slider | Mohammed-fawzy | 2,634 Kb |
A Pen by Rob Levin | Roblevin | 2,787 Kb |
Twitch.tv API | Ryzokuken | 2,618 Kb |
Process Accordion | Devilskitchen | 31,432 Kb |
BenU Maintenance Site | Ksherman | 4,893 Kb |
Em Test | Rodesco | 1,784 Kb |
Barber Shop | Bhlaird | 6,270 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!