Menu jQ by Treehouse

Developer
Size
2,126 Kb
Views
14,168

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 Previews

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">&#9776;</div>');	$("#menu").click(function(){	$("#nav").slideToggle(500);	});	$(window).resize(function(){	if(window.innerWidth > 768) {	$("#nav").removeAttr("style");	}	});	});
Menu jQ by Treehouse - Script Codes
Menu jQ by Treehouse - Script Codes
Home Page Home
Developer DEADBOOT
Username deadboot
Uploaded December 16, 2022
Rating 3
Size 2,126 Kb
Views 14,168
Do you need developer help for Menu jQ by Treehouse?

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!

DEADBOOT (deadboot) Script Codes
Create amazing love letters 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!