Topic: Navbar Brand in Collapsed Mode

aurpine free asked 7 years ago

Is there a way to display the navbar brand in the collapsed mode of the navbar like in MDB3?

Michal Szymanski staff answered 7 years ago

You can do with the code below, however this solution isn't perfect:
        .navbar .in {
            display: inline-block;
            width: 100%;
    <nav class="navbar navbar-dark bg-primary">

        <div class="container">
                <!--Navbar Brand-->
                <a class="navbar-brand" href="#">Navbar</a>

                <!-- Collapse button-->
                <button class="navbar-toggler hidden-sm-up" type="button" data-toggle="collapse" data-target="#collapseEx2">
                    <i class="fa fa-bars"></i>
            <!--Collapse content-->
            <div class="collapse navbar-toggleable-xs" id="collapseEx2">

                <ul class="nav navbar-nav">
                    <li class="nav-item active">
                        <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
                    <li class="nav-item">
                        <a class="nav-link" href="#">Features</a>
                    <li class="nav-item">
                        <a class="nav-link" href="#">Pricing</a>
                    <li class="nav-item dropdown">
                        <a class="nav-link dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dropdown</a>
                        <div class="dropdown-menu" aria-labelledby="dropdownMenu1">
                            <a class="dropdown-item" href="#">Action</a>
                            <a class="dropdown-item" href="#">Another action</a>
                            <a class="dropdown-item" href="#">Something else here</a>
                <!--Search form-->
                <form class="form-inline">
                    <input class="form-control" type="text" placeholder="Search">
            <!--/.Collapse content-->



Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.


Specification of the issue

  • User: Free
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No