Just dipping my toes into website coding and Bootstrap is a whole new territory for me. I'm struggling with centering the brand in the navbar while keeping the text aligned to the left of it. So far, every attempt results in both elements being centered. What I really want is for the brand to always stay in the middle.
<nav class="navbar navbar-expand-md flex-column">
<div class="container justify-content-center flex-row navbar-expand-md">
<a href="/index.html" class="navbar-brand">VIRAL BEAUTY</a>
<h4>Beauty Products As Seen On YouTube</h4>
</div>
</nav>
--
nav{
height: 6vh
}
.navbar-brand{
border: 2px #FA5DB1 solid;
padding: 5px 10px;
}
.navbar-brand:hover{
text-decoration: none;
color: #FA5DB1;
cursor: pointer;
}
.navbar a{
text-decoration: none;
color: #FA5DB1;
font-weight: 500;
}
.navbar h4{
font-size: 12px;
margin: 0;
}
PS: Still figuring out how to properly paste my code, so apologies for any confusion.