Flexbox navigation bar

Developer
Size
2,050 Kb
Views
50,600

How do I make an flexbox navigation bar?

What is a flexbox navigation bar? How do you make a flexbox navigation bar? This script and codes were developed by Kevin on 12 August 2022, Friday.

Flexbox navigation bar Previews

Flexbox navigation bar - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Flexbox navigation bar</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <header> <div class="container"> <h1 class="logo">logo</h1> <nav> <ul> <li><a href="">Home</a></li> <li><a href="">New item</a></li> <li><a href="">New item</a></li> <li><a href="">New item</a></li> <li><a href="">About</a></li> <li><a href="">Blog</a></li> <li><a href="">The Team</a></li> <li><a href="">Contact</a></li> </ul> </nav> </div>
</header>
</body>
</html>

Flexbox navigation bar - Script Codes CSS Codes

body { margin: 0;
}
header { background: #2D3047; padding: 2em 0;
}
.container { max-width: 900px; margin: 0 auto; display: -webkit-box; display: -ms-flexbox; display: flex;
}
.logo { -webkit-box-flex: 1; -ms-flex: 1; flex: 1;
}
nav { -webkit-box-flex: 2; -ms-flex: 2; flex: 2; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: stretch; -ms-flex-align: stretch; align-items: stretch;
}
nav ul { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; list-style: none; margin: 0; padding: 0; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; -webkit-box-align: center; -ms-flex-align: center; align-items: center;
}
nav a { color: #FFFD82; text-decoration: none;
}
Flexbox navigation bar - Script Codes
Flexbox navigation bar - Script Codes
Home Page Home
Developer Kevin
Username kevinpowell
Uploaded August 12, 2022
Rating 3
Size 2,050 Kb
Views 50,600
Do you need developer help for Flexbox navigation bar?

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!

Kevin (kevinpowell) 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!