Accordian nav
How do I make an accordian nav?
What is a accordian nav? How do you make a accordian nav? This script and codes were developed by Kescoe on 22 October 2022, Saturday.
Accordian nav - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>accordian nav</title> <link rel='stylesheet prefetch' href='http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css'> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ .menu{ font-size:10px; text-align:center;
}
.headers{ height:15px; width:97px; color:white;
}
#header1{ background-color:red;
}
#header2{ background-color:blue;
}
#header3{ background-color:purple;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <body> <table> <!-- accordian number 1 --> <td> <div class = "menu"> <h3><div class = "headers" id = "header1">home</div></h3> <div> <p><a href = "#"> HOME </a></p> </div> </div> </td> <!-- accordian number2 --> <td> <div class = "menu"> <h3><div class = "headers" id = "header2">about</div></h3> <div> <p><a href = "#"> ABOUT </a></p> </div> </div> </td> <!-- accrodian number 3 --> <td> <div class = "menu"> <h3><div class = "headers" id = "header3">contact</div></h3> <div> <p><a href = "#"> CONTACT </a></p> </div> </div> </td>
</table>
</body> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Accordian nav - Script Codes CSS Codes
.menu{ font-size:10px; text-align:center;
}
.headers{ height:15px; width:97px; color:white;
}
#header1{ background-color:red;
}
#header2{ background-color:blue;
}
#header3{ background-color:purple;
}
Accordian nav - Script Codes JS Codes
$(document).ready(function(){ $(".menu").accordion({ collapsible: true, active: false }); $(".menu").hover(function(){ $(this).accordion({ collapsible: false, active: false }); }); $(".menu").mouseleave(function(){ $(this).accordion({ collapsible: true, active: false }); });
});
![Accordian nav - Script Codes](http://shots.codepen.io/kescoe/pen/sDedp-512.jpg)
Developer | Kescoe |
Username | kescoe |
Uploaded | October 22, 2022 |
Rating | 3 |
Size | 2,168 Kb |
Views | 14,168 |
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 |
Duck Hunt | 1,706 Kb |
CSS gameboy | 4,131 Kb |
Div buttons | 1,978 Kb |
Glitchy Text Effect | 2,208 Kb |
Mr.Build A Face | 2,672 Kb |
Neff | 3,038 Kb |
Animated menu | 2,143 Kb |
Hiding nav | 3,207 Kb |
Funny animals | 3,076 Kb |
IceCream Truck | 4,306 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 |
Eunice A | Ejbronze | 2,203 Kb |
Portfolio Page | HuffmanJ25 | 5,240 Kb |
GLSL Hills | Ykob | 6,991 Kb |
Subscription Newsletter - Before inlining | Bradstrong | 7,526 Kb |
Underlined form fields | Mitchdot | 2,323 Kb |
Testing Code Pen | Jduprey | 1,468 Kb |
Fluid Grid 12 | Alexoliverwd | 2,309 Kb |
CSS Tooltips | Darylldoyle | 2,599 Kb |
Animated Slide Hamburger Mobile Menu | BJack | 2,247 Kb |
Spinners using Font Icons | Keyamoon | 3,007 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!