Menu jQ by Treehouse
How do I make an menu jq by treehouse?
Source: http://blog.teamtreehouse.com/how-to-build-a-three-line-drop-down-menu-for-a-responsive-website-in-jquery. What is a menu jq by treehouse? How do you make a menu jq by treehouse? This script and codes were developed by DEADBOOT on 16 December 2022, Friday.
Menu jQ by Treehouse - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Menu jQ by Treehouse</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <head> <title>Responsive 3-Line Menu</title>
</head>
<body>
<ul id="nav"> <li><a href="#">Home</a></li> <li><a href="#">About</a></li> <li><a href="#">Contact</a></li> <li><a href="#">Ask</a></li> <li><a href="#">Tell</a></li> <li><a href="#">Go Away</a></li>
</ul>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
</body> <script src="js/index.js"></script>
</body>
</html>
Menu jQ by Treehouse - Script Codes CSS Codes
* { margin: 0; padding: 0; } ul { width:100%; } li { -width:33%; float:left; } li:last-child { border-right:none; } li a { display: inline-block; padding: 10px 20px; font-size: 2rem; text-decoration: none; } @media screen and (max-width: 768px) { #menu { width:1.4em; display: block; background:#ddd; font-size:1.35em; text-align: center; } #nav.js { display: none; } ul { width:100%; } li { width:100%; border-right:none; } } @media screen and (min-width: 768px) { #menu { display: none; } }
Menu jQ by Treehouse - Script Codes JS Codes
$(function() { $("#nav").addClass("js").before('<div id="menu">☰</div>'); $("#menu").click(function(){ $("#nav").slideToggle(500); }); $(window).resize(function(){ if(window.innerWidth > 768) { $("#nav").removeAttr("style"); } }); });
Developer | DEADBOOT |
Username | deadboot |
Uploaded | December 16, 2022 |
Rating | 3 |
Size | 2,126 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 |
Fittext Demo | 2,377 Kb |
Menu JS Motto | 3,797 Kb |
Menu JS JDW | 3,885 Kb |
Nav w Fallback One Level | 4,172 Kb |
Nav Top Drawer by J. Moore | 5,440 Kb |
Menu JSM Mode Inline v2 | 5,945 Kb |
Basys_mrmrs | 8,342 Kb |
Menu JS w fallback Sitechop | 3,190 Kb |
Basys_mdd--modernscale | 7,029 Kb |
Menu JSM Mode Inline Almost OK | 5,427 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 |
A Pen by Alexandru Pora | Axpro | 1,615 Kb |
HEXAGON | Aurumlux | 1,684 Kb |
Glitchy Text Effect | Kescoe | 2,208 Kb |
Eunice A | Ejbronze | 2,203 Kb |
404 Error Page | WebSonick | 3,203 Kb |
Stylize Stories | Jvhti | 2,465 Kb |
Testimonial Fancy tabs responsive | Amit-webdesigner | 3,056 Kb |
Countdown with Rings | Ewganoel | 2,490 Kb |
Off Canvas | Mariamarica | 1,870 Kb |
Heatmap Color Scales | Stevepepple | 2,331 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!