Bootstrap 5.1 Navbar with 3 sections (left, center, right)

I’m having problems with getting the layout right for the navbar I’m working with.

I want the navbar to have 3 sections like described in the title, for the first section at the left there’s an img and a simulating a button that needs to be in the same row no matter the width.

For the second section at center, just a h1 on top of a h2 with text-center.

And for the third one at the far right, it needs to be sectioned in a 2×3 grid, the first column there’s gonna be a button that covers the 2 rows, in the second one two buttons in each row, and the third column needs to be a button with an img inside that covers the 2 rows like the first one but with more space to cover width-wise compared to the other ones (like a 25%, 25%, 50% respectively)

Here’s what I have at the moment.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code> <nav class="navbar navbar-expand-lg navbar-toggleable navbar-light bg-light border-bottom text-black">
<ul class="navbar-nav mx-auto flex-shrink">
<li class="nav-item active row">
<a class="nav-link col-auto" href="">
<img src="~/archivos/logo.jpg" class="rounded" width="90" height="90" />
</a>
<a class="nav-link collapse navbar-collapse btn-warning border rounded d-flex justify-content-center col-6" asp-area="" asp-controller="Home" asp-action="Index">
<i class="fa-solid fa-left-long text-white" style="font-size:3vw;"></i>
</a>
</li>
</ul>
<ul class="navbar-nav mx-auto flex-shrink">
<li class="nav-item text-center justify-content-center">
<div>
<h4 class="h1">Analysis tools</h4>
<small class="h2 text-warning">SPC Tool</small>
</div>
</li>
</ul>
<ul class="navbar-nav mx-auto flex-shrink">
<li class="nav-item">
<div class="row">
<div class="col-lg-2 col-md-2 col-sm-3 col-xs-2" style="padding:0px">
<div class="short-div">
<a class="nav-link" asp-area="" asp-controller="Home" asp-action="Logs">
<div class="btn btn-success">
<i class="fa-solid fa-table"></i>
</div>
</a>
</div>
<div class="short-div">
<a class="nav-link" asp-area="" asp-controller="Home" asp-action="Login">
<div class="btn btn-dark">
<i class="fa-solid fa-key"></i>
</div>
</a>
</div>
</div>
<div class="col-lg-5 col-md-2 col-sm-3 col-xs-2">
<a class="navbar-link" href="">
<img class="w-100 h-100" src="~/Archivos/pren.png" />
</a>
</div>
</div>
</li>
</ul>
</nav>
</code>
<code> <nav class="navbar navbar-expand-lg navbar-toggleable navbar-light bg-light border-bottom text-black"> <ul class="navbar-nav mx-auto flex-shrink"> <li class="nav-item active row"> <a class="nav-link col-auto" href=""> <img src="~/archivos/logo.jpg" class="rounded" width="90" height="90" /> </a> <a class="nav-link collapse navbar-collapse btn-warning border rounded d-flex justify-content-center col-6" asp-area="" asp-controller="Home" asp-action="Index"> <i class="fa-solid fa-left-long text-white" style="font-size:3vw;"></i> </a> </li> </ul> <ul class="navbar-nav mx-auto flex-shrink"> <li class="nav-item text-center justify-content-center"> <div> <h4 class="h1">Analysis tools</h4> <small class="h2 text-warning">SPC Tool</small> </div> </li> </ul> <ul class="navbar-nav mx-auto flex-shrink"> <li class="nav-item"> <div class="row"> <div class="col-lg-2 col-md-2 col-sm-3 col-xs-2" style="padding:0px"> <div class="short-div"> <a class="nav-link" asp-area="" asp-controller="Home" asp-action="Logs"> <div class="btn btn-success"> <i class="fa-solid fa-table"></i> </div> </a> </div> <div class="short-div"> <a class="nav-link" asp-area="" asp-controller="Home" asp-action="Login"> <div class="btn btn-dark"> <i class="fa-solid fa-key"></i> </div> </a> </div> </div> <div class="col-lg-5 col-md-2 col-sm-3 col-xs-2"> <a class="navbar-link" href=""> <img class="w-100 h-100" src="~/Archivos/pren.png" /> </a> </div> </div> </li> </ul> </nav> </code>
        <nav class="navbar navbar-expand-lg navbar-toggleable navbar-light bg-light border-bottom text-black">
            
            <ul class="navbar-nav mx-auto flex-shrink">
                <li class="nav-item active row">
                    <a class="nav-link col-auto" href="">
                        <img src="~/archivos/logo.jpg" class="rounded" width="90" height="90" />
                    </a>
                    <a class="nav-link collapse navbar-collapse btn-warning border rounded d-flex justify-content-center col-6" asp-area="" asp-controller="Home" asp-action="Index">
                        <i class="fa-solid fa-left-long text-white" style="font-size:3vw;"></i>
                    </a>

                </li>
            </ul>

            <ul class="navbar-nav mx-auto flex-shrink">
                <li class="nav-item text-center justify-content-center">
                    <div>
                        <h4 class="h1">Analysis tools</h4>
                        <small class="h2 text-warning">SPC Tool</small>
                    </div>
                </li>
            </ul>

            <ul class="navbar-nav mx-auto flex-shrink">
                <li class="nav-item">
                    <div class="row">
                        <div class="col-lg-2 col-md-2 col-sm-3 col-xs-2" style="padding:0px">
                            <div class="short-div">
                                <a class="nav-link" asp-area="" asp-controller="Home" asp-action="Logs">
                                    <div class="btn btn-success">
                                        <i class="fa-solid fa-table"></i>
                                    </div>

                                </a>
                            </div>
                            <div class="short-div">
                                <a class="nav-link" asp-area="" asp-controller="Home" asp-action="Login">
                                    <div class="btn btn-dark">
                                        <i class="fa-solid fa-key"></i>
                                    </div>

                                </a>
                            </div>
                        </div>
                        <div class="col-lg-5 col-md-2 col-sm-3 col-xs-2">
                            <a class="navbar-link" href="">
                                <img class="w-100 h-100" src="~/Archivos/pren.png" />
                            </a>
                        </div>
                    </div>
                    
                </li>
            </ul>
            
            
        </nav>

And here’s the layout that I’m aiming for.
The expected layout

I’m kind of new with asking at the forum so i apologize if I’m ignoring any redacting/formatting rules.

I tried many examples around my searches (the one that I’m using right now for testing comes from a forum), and the ones that bootstrap has in their documentation but can’t get it just right, sometimes the navbar leans to the left without me modifying the margin or padding.

And I’ve tried the solutions from the forums in SO but the size and behavior of the elements inside the navbar items that I require to fit into the navbar layout seems to hold them together incorrectly.

EDIT: Here’s the codepen https://codepen.io/Daniel_ISC/pen/ExzQvyK

New contributor

DANIEL GOMEZ GOMEZ is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật