Css3 only dropdown menu
How do I make an css3 only dropdown menu?
Css3 only responsive dropdown menu, without jquery. What is a css3 only dropdown menu? How do you make a css3 only dropdown menu? This script and codes were developed by Mario Loncarek on 03 July 2022, Sunday.
Css3 only dropdown menu - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Css3 only dropdown menu</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id='cssmenu'> <ul> <li class='active'><a href='index.html'>Home</a></li> <li class='has-sub '><a href='#'>Products</a> <ul> <li class='has-sub '><a href='#'>Product 1</a> <ul> <li><a href='#'>Sub Item</a></li> <li><a href='#'>Sub Item</a></li> </ul> </li> <li class='has-sub '><a href='#'>Product 2</a> <ul> <li><a href='#'>Sub Item</a></li> <li><a href='#'>Sub Item</a></li> </ul> </li> </ul> </li> <li><a href='#'>About</a></li> <li><a href='#'>Contact</a></li> </ul>
</div> <script src="js/index.js"></script>
</body>
</html>
Css3 only dropdown menu - Script Codes CSS Codes
@charset "UTF-8";
@import url(http://fonts.googleapis.com/css?family=Oxygen+Mono);
#cssmenu {padding: 0; margin: 0; border: 0; width:100%}
#cssmenu ul, #cssmenu li {list-style: none; margin: 0; padding: 0;}
#cssmenu ul {position: relative; z-index: 597; }
#cssmenu ul li { float: left; min-height: 1px; vertical-align: middle;}
#cssmenu ul li.hover,
#cssmenu ul li:hover {position: relative; z-index: 599; cursor: default;}
#cssmenu ul ul {visibility: hidden; position: absolute; top: 100%; left: 0; z-index: 598; width: 100%;}
#cssmenu ul ul li {float: none;}
#cssmenu ul ul ul {top: 0; left: auto; right: -99.5%; }
#cssmenu ul li:hover > ul { visibility: visible;}
#cssmenu ul ul {bottom: 0; left: 0;}
#cssmenu ul ul {margin-top: 0; }
#cssmenu ul ul li {font-weight: normal;}
#cssmenu a { display: block; line-height: 1em; text-decoration: none; }
#cssmenu { background: #333; border-bottom: 4px solid #1b9bff; font-family: 'Oxygen Mono', Tahoma, Arial, sans-serif; font-size: 12px;
} #cssmenu > ul { *display: inline-block; } #cssmenu:after, #cssmenu ul:after { content: ''; display: block; clear: both;
}
#cssmenu a { background: #333; color: #CBCBCB; padding: 0 20px;
}
#cssmenu ul { text-transform: uppercase; } #cssmenu ul ul { border-top: 4px solid #1b9bff; text-transform: none; min-width: 190px;
} #cssmenu ul ul a { background: #1b9bff; color: #FFF; border: 1px solid #0082e7; border-top: 0 none; line-height: 150%; padding: 16px 20px;
} #cssmenu ul ul ul { border-top: 0 none; } #cssmenu ul ul li { position: relative }
#cssmenu > ul > li > a { line-height: 48px; }
#cssmenu ul ul li:first-child > a { border-top: 1px solid #0082e7; } #cssmenu ul ul li:hover > a { background: #35a6ff; } #cssmenu ul ul li:last-child > a { border-radius: 0 0 3px 3px; box-shadow: 0 1px 0 #1b9bff;
} #cssmenu ul ul li:last-child:hover > a { border-radius: 0 0 0 3px; } #cssmenu ul ul li.has-sub > a:after { content: '+'; position: absolute; top: 50%; right: 15px; margin-top: -8px;
} #cssmenu ul li:hover > a, #cssmenu ul li.active > a { background: #1b9bff; color: #FFF;
} #cssmenu ul li.has-sub > a:after { content: '+'; margin-left: 5px;
} #cssmenu ul li.last ul { left: auto; right: 0;
} #cssmenu ul li.last ul ul { left: auto; right: 99.5%;
}
Css3 only dropdown menu - Script Codes JS Codes
/* Not mine - found it on net */
Developer | Mario Loncarek |
Username | riogrande |
Uploaded | July 03, 2022 |
Rating | 4.5 |
Size | 2,519 Kb |
Views | 54,648 |
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 |
Css only hover animation image effect | 2,593 Kb |
Responsive overlay menu - full menu with second menu example | 3,613 Kb |
Responsive overlay menu - columns menu example | 3,215 Kb |
Responsive overlay menu - rows menu example | 3,182 Kb |
Responsive carousel with hover effects - owl carousel | 4,334 Kb |
Responsive overlay menu - full menu example | 3,452 Kb |
Responsive overlay menu framework | 3,006 Kb |
IOs 7 phone screen | 2,567 Kb |
Change div order for responsive elements with jquery | 0 Kb |
Sticky nav - demo from designmodo | 2,862 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 |
Siema - add pagination to prototype | Pawelgrzybek | 2,575 Kb |
Side Sliding Menu CSS | EduardL | 4,388 Kb |
Hovers with popups | Zacharyolson | 2,380 Kb |
Basecamp 3 Document | Lachlanjc | 3,811 Kb |
Coburg Banks SVG Logo | Mjtweaver | 3,875 Kb |
A Pen by Jess | Jessamyne | 5,100 Kb |
Shop Talk logo made in CSS | Hugo | 19,368 Kb |
CSS Parent Selector | Tomhodgins | 2,143 Kb |
TigerWoods Freecodecamp Page | Baileytj | 2,869 Kb |
CSS3 keyframe onload animation. | Samueljseay | 1,706 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!