1
Good morning This is the code I use in my menu bar, but when you do Collapse the button is the whole size of the bar by raising the logo icon, I wanted the Collapse button to look the way it should look (square). The css code is from Bootstrap4
<nav class="navbar navbar-expand-md bg-dark navbar-dark fixed-top">
<a class="navbar-brand" href="#"><img src="img/#.png" alt="#" width="25" height="25"></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="collapsibleNavbar">
<ul class="navbar-nav mr-auto">
<li><a class="nav-link" href="#.php">#</a></li>
<li><a class="nav-link" href="#.php">#</a></li>
<!--li><a class="nav-link" href="#.php?id=">#</a></li-->
<li><a class="nav-link" href="#.php">#</a></li>
<li><a class="nav-link" href="#.php">#</a></li>
<li><a class="nav-link" href="#.php">#</a></li>
</ul>
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="password.php">Password</a>
</li>
<li clas="nav-item">
<?php
date_default_timezone_set("Europe/Lisbon");
echo '<a class="nav-link">'.date("d-m-Y").'</a>';
?>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo $logoutAction ?>">Logout</a>
</li>
</ul>
</div>
</nav>
Adelino using Bootstrap-4 and without adding any other CSS here worked normally in Chrome and Firefox.
– hugocsl
<link rel="stylesheet" href="bootstrap/css/bootstrap.css" crossorigin="Anonymous"> <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" crossorigin="Anonymous"> <link rel="stylesheet" href="bootstrap/css/bootstrap-grid.css" crossorigin="Anonymous"> <link rel="stylesheet" href="bootstrap/css/bootstrap-grid.min.css" crossorigin="Anonymous"> <link rel="stylesheet" href="bootstrap/css/bootstrap-reboot.css" crossorigin="Anonymous"> <link rel="stylesheet" href="bootstrap/css/bootstrap-reboot.min.css" crossorigin="Anonymous">
– Adelino Vasconcelos
One such CSS is conflicting with the original Bootstrap4 CDN CSS. And another thing, the "bootstrap-grid.min.css" and "bootstrap-grid.css" files are the same, you don’t need to index both. The difference is that .MIN.CSS is the minified version of CSS, but the two are the same, just call one of them on your page.
– hugocsl