I'm currently in the process of building a website, and I decided to experiment with integrating Bootstrap into it. I've utilized the navbar tags along with some custom CSS, but I'm facing an issue with removing the margin. As a result, the appearance of the navbar is not quite right.
Here's the code snippet:
HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<title>
Hilo | Home</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/styles.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="42202d2d36313630233202766c776c71">[email protected]</a>/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.linearicons.com/free/1.0.0/icon-font.min.css">
</head>
<body class="body-fr">
<nav class="navbar" role="navigation">
<div class="container-fluid nav-container-fr">
<ul class="nav-nav">
<li class="nav-item-fr"><a href="#" class="nav-link nav-size">Home</a></li>
<li class="nav-item-fr"><a href="#" class="nav-link nav-size">Streams</a></li>
<li class="nav-item-fr"><a href="#" class="nav-link nav-size">Followed</a></li>
<li class="nav-item-fr nav-icon-fr"><a href="#" class="nav-link"><i class="lnr lnr-user fs-40"></i></a></li>
<li class="nav-item-fr nav-cog-fr"><a href="#" class="nav-link"><i class="lnr lnr-cog fs-40"></i></a></li>
</ul>
</div>
</nav>
</body>
</html>
CSS:
* {
margin: 0;
padding: 0;
}
.body-fr {
background-color: #333;
}
nav {
margin: 0;
padding: 0;
width: 100%;
}
.navbar {
margin: 0px;
padding: 0px;
}
.nav-container-fr {
width: 100%;
display: flex;
justify-content: space-around;
text-align: center;
background-color: #222;
}
.nav-nav {
justify-content: space-around;
list-style-type: none;
list-style: none;
display: inline;
margin: auto;
margin-bottom: 5px;
}
.nav-size {
font-size: 30px;
}
.nav-item-fr {
text-align: center;
display: inline-flex;
margin: 0 30px;
}
.nav-icon-fr {
margin-top: 5px;
margin-left: 470px;
margin-right: -40px;
}
.nav-cog-fr {
margin-right: -50px;
}
.fs-20 {
font-size: 20px;
}
.fs-40 {
font-size: 40px;
}
.fs-60 {
font-size: 60px;
}
.fs-80 {
font-size: 80px;
}
.fs-100 {
font-size: 100px;
}
.fs-120 {
font-size: 120px;
}
If anyone could provide some guidance on how to resolve this issue, I would greatly appreciate it. Please excuse the messy code, as I am still fairly new to bootstrap and haven't had the chance to tidy up the CSS yet.