Dropdown navigation

Developer
Size
3,158 Kb
Views
10,120

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 Previews

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;
}
Dropdown navigation - Script Codes
Dropdown navigation - Script Codes
Home Page Home
Developer Sander
Username skeurentjes
Uploaded December 18, 2022
Rating 3
Size 3,158 Kb
Views 10,120
Do you need developer help for Dropdown navigation?

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!

Sander (skeurentjes) Script Codes
Create amazing art & images with AI!

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!