Simple responsive drop-down menu

Developer
Size
2,178 Kb
Views
16,192

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 Previews

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*/
Simple responsive drop-down menu - Script Codes
Simple responsive drop-down menu - Script Codes
Home Page Home
Developer Mitch Pruitt
Username mitchdot
Uploaded November 08, 2022
Rating 3
Size 2,178 Kb
Views 16,192
Do you need developer help for Simple responsive drop-down menu?

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!

Mitch Pruitt (mitchdot) Script Codes
Create amazing video scripts 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!