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 |
DMND | 2,796 Kb |
A Bouncy Menu Toggle | 4,563 Kb |
SuprLiTE CSS Arrows | 3,691 Kb |
A Simple, Fashionable, Loader | 1,661 Kb |
Interactive Business Card - OG | 3,334 Kb |
Camera | 2,136 Kb |
CSS Slider | 1,910 Kb |
Full Page Vertical Hover Sliders | 2,418 Kb |
Mobile Twitter Log-in Design | 3,177 Kb |
Hotel Booking ..in progress | 4,458 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 |
Old calculator | Gnarfugh | 2,815 Kb |
JS Countdown Timer | Ayoungh | 2,435 Kb |
Speech bubbles | Something | 1,547 Kb |
Shape Outside - Polygon | Stacy | 3,954 Kb |
P1 | Vivi_Lai | 1,533 Kb |
CSS- UI Element States Pseudo-Classes | Tesla809 | 2,206 Kb |
SVG Scalable Text | Said_FD | 1,451 Kb |
Multi column experiment. | Spylefkaditis | 2,805 Kb |
Growing Root - Scroll control - CANVAS | Cjonasw | 2,342 Kb |
Tumblr API | Juanv911 | 2,436 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!