Bootstrap CSS Classes

Bootstrap CSS class .navbar-collapse

    <nav class="navbar navbar-expand-lg navbar-light bg-light">
        <a class="navbar-brand" href="#">LOGO</a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>

        <div class="collapse navbar-collapse" id="navbarSupportedContent">
            <ul class="navbar-nav mr-auto">
                <li class="nav-item active">
                    <a class="nav-link" href="#">Nav-link(active)</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="#">Nav-link 1</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="#">Nav-link 2</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link disabled" href="#">Nav-link(disabled)</a>
                </li>
            </ul>
        </div>
    </nav>

Preview

Check .navbar-collapse in a real project

Click one of the examples listed below to open the Shuffle Visual Editor with the UI library that uses the selected component.

More Bootstrap CSS classes in Navbar category

© 2024 Shuffle. All rights reserved.