Responsive Navbar - HTML/CSS/JS Full Example
Responsive Navbar - HTML/CSS/JS Full Example
===========================================
<!DOCTYPE html>
<html>
<head>
<style>
.navbar { display: flex; background: #1f2937; padding: 1rem; }
@media (max-width: 768px) { .nav-links { display: none; } }
</style>
</head>
<body>
<nav class="navbar">
<a href="#" class="logo">PasteText</a>
<button onclick="toggleNav()">☰</button>
<ul class="nav-links" id="navLinks">
<li><a href="#">Home</a></li>
</ul>
</nav>
<script>function toggleNav() { document.getElementById('navLinks').classList.toggle('active'); }</script>
</body>
</html>
Featured
Advertisement
Category
Action