Re-invented CSS Drop-down Menu

Developer
Size
2,757 Kb
Views
26,312

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 Previews

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%;
}
Re-invented CSS Drop-down Menu - Script Codes
Re-invented CSS Drop-down Menu - Script Codes
Home Page Home
Developer Billy Crist
Username billyysea
Uploaded October 04, 2022
Rating 4
Size 2,757 Kb
Views 26,312
Do you need developer help for Re-invented CSS 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!

Billy Crist (billyysea) Script Codes
Create amazing captions 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!