I need assistance with adding a border around my mobile drop-down menu. I've tried using .navbar-collapse
but it's not working. Any suggestions?
Here is a sample image of the mobile size:
https://i.sstatic.net/O9oA1.png
Below is my code:
<nav class="navbar navbar-default navbar-fixed-top">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="#">I am fouridine</a>
</li>
<li><a href="#about">design</a>
</li>
<li><a href="#contact">animation</a>
</li>
<li><a href="#">other art</a>
</li>
<li><a href="#">contact</a>
</li>
</ul>
</ul>
</div>
<!--/.nav-collapse -->
</nav>
The CSS for the navigation is as follows:
@media (min-width: 768px) {
.navbar {
display: none;
}
}
.navbar {
min-height:0;
}
.navbar-nav {
margin:0;
}
/* Remaining CSS rules... */