The navbar on my website (see code block) expands in height when on mobile (because it doesn't all fit into 1 line). I noticed that if i delete the brand, it fits. However when on a big screen i would like to keep the brand. How can I make it disappear only for small screens (mobile) and stay for computer screens?
Thank you!
<nav class="navbar navbar-expand-sm bg-dark navbar-dark">
<!-- Brand/logo -->
<a class="navbar-brand custom-brand" href="#">Logo</a>
<!-- Links -->
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="#">Link 1</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link 2</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link 3</a>
</li>
</ul>
</nav>
i tried adding this to my css but this only cuts off half of my brand to make it fit which i think is uglier than just getting rid of the whole thing.
.custom-brand{
overflow: hidden;
}