Re-invented CSS Drop-down Menu
How do I make an re-invented css drop-down menu?
Trying to re-invent the CSS Drop-down Menu without ul's and li's. Yeehawww!! haha... What is a re-invented css drop-down menu? How do you make a re-invented css drop-down menu? This script and codes were developed by Billy Crist on 04 October 2022, Tuesday.
Re-invented CSS Drop-down Menu - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Re-invented CSS Drop-down Menu</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <header>
<nav class='mm-menu'> <a href='' class='mm-item'>Home</a> <div class='mm-item'>Categories <div class='dd-menu'> <a href='' class='dd-item'>Boats</a> <a href='' class='dd-item'>Trains</a> <a href='' class='dd-item'>Planes</a> <a href='' class='dd-item'>Cars</a> <a href='' class='dd-item'>Bikes</a> <a href='' class='dd-item'>Trucks</a> </div> </div> <a href='' class='mm-item'>Portfolio</a> <div class='mm-item'>Contact <div class='dd-menu'> <a href='' class='dd-item'>Email</a> <a href='' class='dd-item'>Phone</a> </div> </div> <div class='mm-item'>About <div class='dd-menu'> <a href='' class='dd-item'>Susy</a> <a href='' class='dd-item'>Bobby</a> <a href='' class='dd-item'>Joey</a> </div> </div>
</nav>
</header>
<!-- Using for z-index tests -->
<img src='http://placekitten.com/1400/700' />
</body>
</html>
Re-invented CSS Drop-down Menu - Script Codes CSS Codes
* { margin: 0; padding: 0; -moz-box-sizing: border-box; box-sizing: border-box;
}
body { min-width: 630px; font-family: sans-serif;
}
header { background: tomato;
}
.mm-menu { position: relative; z-index: 99; margin: 0 auto; width: 100%; min-width: 630px; max-width: 1000px; text-align: center; font-size: 0;
}
[class*=item] { min-width: 125px; padding: 0 19.8px; cursor: pointer; text-decoration: none; font-size: 1.22rem; color: linen; transition: .3s;
}
.mm-item { display: inline-block; background: tomato; width: 20%; line-height: 60px;
}
[class*=item]:hover { background: #ff745c; color: white;
}
.dd-menu { position: absolute; width: 20%; z-index: -1; top: -400px; margin-left: -19.8px; transition: .3s ease-in-out;
}
.mm-item:hover > .dd-menu,
.mm-item:focus > .dd-menu { top: 60px;
}
.dd-item { display: block; background: #ff4929; line-height: 36px; font-size: 85%; width: 100%;
}
/* Using for z-index tests */
img { position: relative; z-index: 50; margin: 1em 5%; width: 90%;
}
Developer | Billy Crist |
Username | billyysea |
Uploaded | October 04, 2022 |
Rating | 4 |
Size | 2,757 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 Bouncy Menu Toggle | 4,563 Kb |
A Perfect Minimal iPhone Template | 2,322 Kb |
Switches | 3,081 Kb |
Some Ugly Icons | 3,930 Kb |
A Music Player | 6,174 Kb |
Full Page Vertical Hover Sliders | 2,418 Kb |
Random Swim Slider | 2,345 Kb |
Interactive Business Card - OG | 3,334 Kb |
SuprLiTE CSS Arrows | 3,691 Kb |
CSS Slider | 1,910 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 |
Realistic Buttons | Stoypenny | 2,248 Kb |
Blog Concept 2 | JGallardo | 2,994 Kb |
Brown by pure CSS, no image, no javascript | Aaronchuo | 2,652 Kb |
Web Spiral - p5.js | TWAIN | 2,183 Kb |
Dribbble Template | ExtremelyGinger | 2,204 Kb |
The Rope | Chribbe | 2,886 Kb |
Intake Form Page 2 | Ijantje | 4,983 Kb |
Sony Xperia Z3 Flat MockUp | Dapinitial | 4,379 Kb |
SVG Hover Animations | Kjbrum | 10,557 Kb |
SnappySnippet Test | Elmsoftware | 8,385 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!