Simple responsive drop-down menu
How do I make an simple responsive drop-down menu?
Menu goes from horizontal to drop-down at 620px width, homie.. What is a simple responsive drop-down menu? How do you make a simple responsive drop-down menu? This script and codes were developed by Mitch Pruitt on 08 November 2022, Tuesday.
Simple responsive drop-down menu - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Simple responsive drop-down menu</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body> <div class="menu"> <ul> <li><span class="entypo-menu"></span> Menu</li> <li><a href="#">Thing one</a></li> <li><a href="#">Thing two</a></li> <li><a href="#">Thing three</a></li> <li><a href="#">Thing four</a></li> <li><a href="#">Thing five</a></li> </ul> </div>
</body>
</body>
</html>
Simple responsive drop-down menu - Script Codes CSS Codes
@import url(https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:200);
@import url(http://weloveiconfonts.com/api/?family=entypo);
html, body, ul, ol, li, form, fieldset, legend { margin: 0; padding: 0;
}
* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}
body { background: url(https://subtlepatterns.com/patterns/squairy_light.png);
}
a { text-decoration: none; color: #fff;
}
.menu { width: 100%; color: #fff; font: 24px "Yanone Kaffeesatz"; text-align: center; -webkit-box-shadow: 0px 1px 2px 0px rgba(100, 100, 100, 50); box-shadow: 0px 1px 2px 0px rgba(100, 100, 100, 50);
}
ul { width: 100%; background-color: #D2797C; margin-left: auto; margin-right: auto; list-style: none; padding: 10px;
}
li { display: inline; text-transform: uppercase; padding-right: 5%;
}
li:first-child { display: none;
}
ul:last-child { padding-right: 0;
}
@media screen and (max-width: 620px) { ul:hover { background: #d2797c; /* Old browsers */ background: -moz-linear-gradient(top, #d2797c 0%, #d1383d 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#d2797c), color-stop(100%,#d1383d)); background: -webkit-linear-gradient(top, #d2797c 0%,#d1383d 100%); background: -o-linear-gradient(top, #d2797c 0%,#d1383d 100%); background: -ms-linear-gradient(top, #d2797c 0%,#d1383d 100%); background: linear-gradient(to bottom, #d2797c 0%,#d1383d 100%); /* W3C */ } li { display: block; margin-top: 12px; text-align: left; } li:first-child { display: block; margin-top: auto; } ul li { display: none; } ul:hover li { display: block; }
} /*end query*/
Developer | Mitch Pruitt |
Username | mitchdot |
Uploaded | November 08, 2022 |
Rating | 3 |
Size | 2,178 Kb |
Views | 16,192 |
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 |
Snazzy fixed backgrounds | 4,927 Kb |
Image header overlay | 2,188 Kb |
Contact Card Flip | 5,338 Kb |
ASCII triangle image overlay | 2,200 Kb |
Sliding image | 2,497 Kb |
Sooper cool article header image | 3,583 Kb |
Threadless-style rollover menu | 2,195 Kb |
Segmented control | 3,759 Kb |
Off-screen navigation | 5,220 Kb |
ThisIsMyJam Player | 5,945 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 |
Codero Sitemap | S1m0ne | 28,169 Kb |
Preloader | Rikki_Sixx | 2,815 Kb |
Price Comparison Table | Orrinward | 3,459 Kb |
Comparison of Roboto Draft vs Roboto | Jxnblk | 2,880 Kb |
A Pen by Bryan | Brydave | 2,286 Kb |
Process Accordion | Devilskitchen | 31,432 Kb |
DNA Double Helix | Hugo | 5,112 Kb |
Very Simple Slider | Doodlemarks | 2,682 Kb |
Wip elementary os navbar | Nickcolley | 2,993 Kb |
Pure CSS Tooltips | Mobius1 | 2,271 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!