To add a login form to the top navigation using Zurb Foundation, follow these steps:
<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/foundation/6.2.4/foundation.min.css">
<script src="https://cdn.jsdelivr.net/foundation/6.2.4/foundation.min.js"></script>
</head>
<body>
<nav class="top-bar" data-topbar>
<ul class="title-area">
<li class="name">
<h1><a href="#">Site Title</a></h1>
</li>
</ul>
<section class="top-bar-section">
<ul class="right">
<li class="has-form">
<div class="row collapse">
<div class="small-8 columns">
<input type="text" placeholder="Username">
</div>
<div class="small-4 columns">
<a href="#" class="button expand">Log In</a>
</div>
</div>
</li>
</ul>
</section>
</nav>
<!-- Rest of your HTML code goes here -->
</body>
Asked: 2021-06-16 11:00:00 +0000
Seen: 7 times
Last updated: Oct 19 '21