Code Pad
Code
List Code
Search Code
Images
List Images
Search Images
Login
Privacy
Home
Drop Down Menu CSS
jquery ui datepicker
js
styling css elements based on their attributes
css
animate background gradient css
css
linear gradient background with 3 colours
css
web storage testing
js
load a script based on a page condition variable
jquery
loop through elements and change the content using each and substr with jquery
jquery
mega menu testing
css
basic foundation grid layout
html
Drop Down Menu CSS
3:18 am, March 5, 2018
a simple css + html only drop down menu, no javascript required.
Code
html
css
js
scripts
html
Code
List Code
Search Code
Add Code Item
Drop Code
Images
List Images
Search Images
Add Images Item
Logout
Privacy
css
@import url('https://fonts.googleapis.com/css?family=Mina'); .menu,.menu a { font-family: "Mina",sans-serif; } /* .menu */ ul.menu,ul.menu ul.sub-menu { padding:0; margin:0; z-index:10; } ul.menu li,ul.menu ul.sub-menu li { list-style-type:none; display:inline-block; } ul.menu li a,ul.menu li ul.sub-menu li a { text-decoration:none; background:#FFF; color:#444; padding:10px 15px; display:inline-block; margin:0; } ul.menu li ul.sub-menu li a { background:#666; color:#FFF; } ul.menu li a:hover,ul.menu li ul.sub-menu li a:hover { color:#FFF; background:#444; } ul.menu li { position:relative; margin:0; padding:0; } ul.menu li>ul.sub-menu { display:none; position:absolute; top:44px; left:0; } ul.menu li ul.sub-menu a { width:180px; } ul.menu li:hover>ul.sub-menu { display:block; } ul.menu li a:hover,ul.menu li a:active { background:#444; } ul.menu li ul li a:hover { background:#444; } ul.menu li ul.sub-menu li ul { display:none; position:absolute; top:0px; left:180px; width:280px; } ul.menu li ul.sub-menu li:hover ul { display:block; } ul.menu li ul.sub-menu li ul li a { width:280px; font-size: 16px; } ul.menu li a { background:#444; color:#CCC; } /* .menu */
js
scripts
Download & Run
Download File
Run Demo
Re-load Preview
Preview
LaYi2