SideNav
How do I make an sidenav?
What is a sidenav? How do you make a sidenav? This script and codes were developed by Helana Nosrat on 07 November 2022, Monday.
SideNav - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>SideNav</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="sideBar"> <!-- This section gets pushed to the top--> <div class="sideBar__section"> <div class="sideBar__item is-side-bar-item-selected">Inbox</div> <div class="sideBar__item">Contacts</div> <div class="sideBar__item">Account</div> </div> <!-- This section gets pushed to the bottom--> <div class="sideBar__section"> <div class="sideBar__item">Change theme</div> <div class="sideBar__item">Legal</div> </div>
</div> <script src="js/index.js"></script>
</body>
</html>
SideNav - Script Codes CSS Codes
.sideBar { /** * This container orders items according to flexbox * rules. By default, this would arrange its children * horizontally. However, the next property... */ display: flex; /** * ...sets the main axis to be vertical instead of * horizontal, so now the children are laid out * vertically, from top to bottom. */ flex-direction: column; /** * It will also put as much space as possible * between its children, with the children at either end * laying flush against the container's edges. */ justify-content: space-between; height: 300px; width: 150px; border-right: 1px solid #D7DBDD; background-color: #FCFDFD; padding: 10px;
} .sideBar__item { cursor: pointer; padding: 5px 10px; color: #16A2D7; font-size: 12px; } .sideBar__item.is-side-bar-item-selected { background-color: #EEF3F5; border-radius: 4px; }
SideNav - Script Codes JS Codes
//replicated from http://www.flexboxpatterns.com/side-bar//
Developer | Helana Nosrat |
Username | HelanaN |
Uploaded | November 07, 2022 |
Rating | 3 |
Size | 2,091 Kb |
Views | 22,264 |
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 |
ALOHA TEMPLATE | 8,857 Kb |
EduMotion navbar | 2,201 Kb |
Duke Template | 9,874 Kb |
Counter Angular | 2,525 Kb |
Flexbox Website Template | 1,724 Kb |
A Pen by Helana Nosrat | 645,361 Kb |
Email Image Carousel | 1,833 Kb |
Subscribe Form 1 | 1,821 Kb |
Analytics Template | 3,728 Kb |
Color Example | 1,698 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 |
Improve | Gavra | 1,652 Kb |
Acorrdian 2016 | Milanodituti | 3,720 Kb |
Speech bubbles | Something | 1,547 Kb |
A Pen by Manoz | Manoz | 2,424 Kb |
BabyStore | Pablo-Ai | 3,807 Kb |
Vue Transition | Chenming142 | 4,561 Kb |
Monochrome Form | AlienPiglet | 3,096 Kb |
TinFoil Boats | Chandralil | 4,577 Kb |
Reading Grid | Tappily | 4,306 Kb |
Save for later... | Victorfreire | 1,359 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!