What is the best way to increase the spacing between images in a navbar?

Having trouble aligning images in navbar with bootstrap. Tried various solutions without success. Here is my code snippet and image of my current page:

 <body>
  <header id="header" class="fixed-top">
    <nav class="navbar navbar-expand-lg bg-img navigation-wrap">
        <div class="container">
            <div class="logo lahore">
          <a class="navbar-brand" href="#"><img src="img/TOL <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="93dffcf4fcbed1fff2f0f8d3a1ebbde3fdf4">[email protected]</a>"></a>
            </div>
          <div class="collapse navbar-collapse" id="navbarSupportedContent">
            <ul class="navbar-nav me-auto">
              <li class="nav-item">
                <a class="nav-link" href="#services"><img 
              src="img/navbar/SERVICES.png"></a>
              </li>
              <li class="nav-item">
                <a class="nav-link" href="#lahore"><img src="img/navbar/LAHORE.png"> 
               </a>
              </li>
              <li class="nav-item">
                <a class="nav-link" href="#menu"><img src="img/navbar/JOIN OUR 
             TEAM.png"></a>
              </li>
              </li>
              <li class="nav-item">
                <a class="nav-link" href="#contact_us"><img src="img/navbar/CONTACT 
             US.png"></a>
              </li>
            </ul>
          </div>
        </div>
      </nav>
  </header>
  </body>

view screenshot here - showing my current code layout

Below attached another page how it's supposed to look like.

view correct image layout here

Can someone advise on what I might be doing wrong?

Answer №1

Try using the container-fluid and text-center classes

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

How can I troubleshoot the unresponsive remove div function on my website?

My code is running fine on CodePen (link provided below), but for some reason, it's not working properly in the web browser. I am executing the code from localhost and the button isn't responding as expected. CODE Here is my Visual Studio code ...

Dynamically update selectable dates in Bootstrap datepicker based on availability

I've integrated WMS data into my website using Leaflet and have implemented a bootstrap datepicker that restricts date selection to a predefined array of dates by utilizing the beforeShowDay method. Now, I'm faced with the challenge of updating ...

Using CSS within the HTML code is effective, however, linking to an external CSS file is not working

I require assistance. This situation is absolutely absurd. Currently, I am utilizing Komodo IDE version 7.1.2 and Firefox version 15.0.1. The HTML5 file that I created looks like this: <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" ...

Tips for centering an image vertically in a table's cell

I'm looking to vertically center the text, but I'm not sure how to do it. Check out my attempt on the fiddle link below: http://jsfiddle.net/jTW4d/ ...

Make sure the page preloader is visible before any other content is loaded

Currently, I am working on a straightforward preloader page that remains visible until the main content of the page is completely loaded. Despite the functionality of the loading page, my main concern lies in the quick display of the main content before th ...

Tips for enabling an item to be moved around using HTML?

How can HTML be utilized to create a draggable item without simply assigning it as draggable? ...

Using jquery and css to allow hover effects and modify the color of active tabs

I need to modify the appearance of a tab in my left navigation menu so that it changes color when hovered over and remains that color when selected. I have limited experience with jQuery and CSS, so any guidance would be greatly appreciated! Below is the ...

CSS designs that adapt with the screen: Triangles in

I'm currently working on creating a responsive triangle using CSS. I want both the height and width of the triangle to adjust as the window size changes. Below is my static code: #triangle { z-index: 2; width: 0; height: 0; position:absolute ...

What are some methods for decelerating typewriter text animation?

I'm currently updating my portfolio and have incorporated a typewriter effect into the second line of text. However, I'm finding that the speed of the effect is a bit too fast for my liking. I've attempted to adjust the animation seconds, de ...

Is there a way to showcase a lengthy list of numerical values in an organized format using HTML/Bootstrap within the Django framework?

As I work on developing a gym workout database website using Django, one key component of my Workout model is the instructions field. The current setup accepts instructions as a text field: instructions = models.TextField() However, this setup displays al ...

Modifying a variable when a specific number of elements are clicked using jQuery

I have created a script for my portfolio that is functional but I want to streamline it so that I only need to edit the HTML, not the script itself. The main requirements for the code are: Count the number of <img> tags within the element with id ...

The styles are not being successfully applied to the Material UI Menu component within a React application

I recently started working with material-UI. I have a menu component that looks like this: <Menu classes={{ paper: css.paperMenu }} className={classNames({ [css.menuMarginTop]: true })} > .menuMarginTop { margin-top: 14px; } In ...

Issue with Nivo Lightbox: image not properly centered or resizing correctly

Whenever an image is clicked, it opens in the Nivo lightbox. This feature used to work flawlessly, but recently, it seems to be experiencing issues. The image should be centered and resize responsively to stay in the center. (For example, it worked correct ...

Regular expressions used to efficiently parse CSS selectors

I am looking to enhance the scope of my selectors. One effective method, in my opinion, is to target a CSS selector and return a combination of mySelector and oldSelector For instance, if I have .old { background: black; }, I would modify it to .mySelecto ...

Utilizing nested Bootstrap 3.1.1 collapse functionality

Hey there! I need some assistance. Currently, I am working with Bootstrap 3.1.1 and implementing nested collapse menus in a sidenav. My goal is to apply a background color (using a specific class) to the open menu and remove it when the menu is closed. Ev ...

Adjust the height of the following column to match the responsive height of the initial column

Those who have marked it as duplicate, I want to clarify that my question is not about making Bootstrap columns all the same height. Instead, I am focusing on responsive images while maintaining their aspect ratio, which is a different issue from simply en ...

Trying to align two divs side by side with the first one floating left and the second one fixed in position? Unfortunately

Here is an example that I have: https://jsfiddle.net/2z2ksLy4/ HTML: <div class="one"> test </div> <div class="two"> test2 </div> CSS: .one{ width:400px; border:1px solid red; min-height: 200px; float:left; display: ...

Subscribe on Footer triggers automatic scrolling to the bottom of the page

Whenever I fill out the form in the footer and hit submit, it directs me to a different page while automatically scrolling back down to the footer. I'm looking for a solution that prevents this automatic scrolling. I've attempted using window.sc ...

An issue with the Bootstrap dismissible alert persistently appearing upon loading the page

<div class="alert alert-warning alert-dismissible " aria-hidden="true"> <button type="button" class="close " aria-hidden="true" data-dismiss="alert">&times;</button> <strong th:text="${error}"></strong> < ...

Limit the user's ability to choose just one radio button from each of two groups that have identical values

Currently, I am developing a web application that involves creating a virtual team. Users are able to choose players and then assign a "Captain" and a "Vice-Captain" for the team. To facilitate this, I have implemented two radio button groups where users c ...