Mobile Navigation Bar Reaches Beyond Its Limits

Having some trouble with the mobile view of a website I'm working on. The navbar width seems to be too wide, causing issues with the overall layout. Here's the link to the site -

<body data-spy="scroll" data-target="#landingkit-navbar" data-offset="74">
    <div id="preloader">
        <div id="preloader-inner"></div>
    </div><!--/preloader-->

    <nav class="navbar navbar-expand-lg navbar-light bg-white navbar-sticky">
        <div class="container-fluid">
            <a class="navbar-brand" href="index.html">
                <img src="images/logo.png" alt="">
            </a>
            <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#landingkit-navbar" aria-controls="landingkit-navbar" aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon"></span>
            </button>

            <div class="collapse navbar-collapse" id="landingkit-navbar">
                <ul class="navbar-nav ml-auto">
                    <li class="nav-item">
                        <a class="nav-link active" data-scroll href="#home">Home <span class="sr-only">(current)</span></a>
                    </li>

                    <li class="nav-item">
                        <a class="nav-link" data-scroll href="#features">Pest Control</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" data-scroll href="#termite">Termite Control</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" data-scroll href="#fungus">Fungus Control</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" data-scroll href="#lawn">Lawn Spraying</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" data-scroll href="#faqs">Other Services</a>
                    </li>
                </ul>
                <ul class="navbar-nav ml-auto navbar-right">
                    <li class="nav-item">
                        <a class="nav-link" data-scroll href="#">Serving South GA</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" data-scroll href="#" style="font-weight: 900">229-924-7774</a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>

Answer №1

Your website's lack of responsiveness is the root cause of this issue.

The owl-carousel has a width that exceeds 224520px, leading to your header's

Navbar Extending Too Far on Mobile
.

To resolve, consider reducing the width of the owl-carousel for mobile devices.

Alternatively

Add max-width: 100% to the parent(.row) of the owl-carousel.

This solution should address the issue effectively.

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

What is the best way to keep horizontal divs aligned in a row with margins between them within a wrapper?

I have arranged three divs in a row with a 10px margin between them within a responsive layout. Currently, the divs have margin-left: 10px; margin-right: 10px; to create spacing. However, I aim to align them perfectly within the wrapper without any extra ...

Tips for ensuring Marketo forms are responsive when integrated into a WordPress website

We are currently using Wordpress for our responsive website. Within the site, we have integrated Marketo forms (a marketing automation system) with custom CSS for styling. The issue we are facing is that while the forms appear fine on desktops, they cause ...

Troubleshooting z-index conflict when using :before pseudo element to emphasize list entries

I am experiencing an issue with highlighting items in a list generated by JSTree using the :before pseudo element. The z-indexes seem to be causing some trouble, as adjusting them results in the highlighting appearing either behind all links or in front of ...

Verify if there is a value in at least one of the multiple input fields

I have 4 input fields and I need to check if at least one of them has a value. If none of them are filled out, I want the function to stop. Below is the current code snippet I'm using but it's not working as expected because it doesn't ente ...

The addClass method in jQuery is failing to append the specified class to the element

I'm currently working on a registration form that includes selecting your gender: My goal is to have the male icon turn blue when clicked, and the female icon turn pink. The color change currently works when hovering, but not when clicked. Here is th ...

Issue with jQuery's addClass() function not functioning properly on Internet Explorer versions 8, 9, and possibly others as well

Here is some basic HTML code: <div class="stuff-choice"> <div class="item a"> <label class="signup-checkbox"> <input type="checkbox" value="a" name="stuff[a][]" id="stuff_choice_" class="things"> <strong>A&l ...

Eliminating margin space from grid columns in Bootstrap 4/5

What is the best way to implement a gutterless grid in bootstrap 4? Is there an established method for removing gutters, or does it require manual adjustments? ...

Numerous images with clickable features

Currently, I am in the process of designing a screen that will showcase around 50 toggle buttons to be displayed on a monitor within a building. My goal is to incorporate a variety of images as toggles to ensure they are easily visible and identifiable. I ...

When viewing HTML "Div" on smaller screens, the full height may not be displayed properly

My setup includes two monitors: one is 24" and the other is my laptop's 12.5" screen. I have a red box (div) in my web application that displays full height on the larger monitor, but only partially on the smaller one. I'm puzzled as to why it s ...

Adjust the placement of a dropdown menu placed within a table

I have successfully implemented a sticky table header, but I am encountering an issue with the select element integrated into my table: View before scrolling the table View after scrolling the table As you can see, the select element overlaps with the t ...

Divs displayed using inline-block do not align seamlessly

I am having an issue with the alignment of 4 divs displayed inside a main container. Despite all having a fixed height of 100px, some of them have text that is one line longer than the others. In theory, this should not affect their positioning on the same ...

I'm looking to add a price ticker to my html webpage. Does anyone know how to do this?

PHP Code <?php $url = "https://www.bitstamp.net/api/ticker/"; $fgc = file_get_contents($url); $json = json_decode($fgc, true); $price = $json["last"]; $high = $json["high"]; $low = $json["low"]; $date = date("m-d-Y - h:i:sa"); $open = $json["open"]; ...

Is it possible to manipulate CSS on a webpage using javascript?

I have incorporated this piece of JavaScript to integrate a chat box onto my website: window.HFCHAT_CONFIG = { EMBED_TOKEN: "XXXXX", ACCESS_TOKEN: "XXXXX", HOST_URL: "https://happyfoxchat.com", ASSETS_URL: "https://XXXXX.cloudfront.ne ...

What could be causing jQuery to successfully animate the size of my div element but not the color of my text?

My jQuery code successfully animates the height and width of divs, but it doesn't seem to be working for the text color within those divs. I'm not sure what I'm missing here. Below is the full code snippet, with lines 9 and 12 being the ones ...

Implementing a feature to add selected checkboxes and remove unselected checkboxes with PHP and MySQL

I am currently working with 3 tables in my database: product, category, and product_category. I am in the process of creating a form that allows users to edit (insert/delete) categories for a specific product. My challenge lies in inserting an array of che ...

Formatting of XML in IE10 is not retained when displayed within an iframe

I'm in the process of creating a basic HTML file and looking to include an XML file within it. My method for doing this involves using iFrames. Surprisingly, when I view the XML file in IE9, it appears formatted (despite some activeX warnings). Howeve ...

Prevent Blurry Image Edges from Becoming Undefined During CSS Transitions with CSS Filter Blur

Keeping the edges of an image crisp and defined during a CSS transition can be challenging when adding negative margin. How can you maintain image clarity while applying or removing a filter blur class? Tested in: Firefox 37: Functioning perfectly! Chr ...

Tips for setting up personalized breakpoints for a Bootstrap navbar

I am currently facing an issue with my navbar on tablet view. Despite implementing custom breakpoints to collapse the navbar at 1050, the menu bar is appearing in two rows instead of one. I have tried using the code below but it doesn't seem to be wor ...

An unusual html element

During a recent exploration of a website's code using the inspect tool, I stumbled upon a tag that was completely unfamiliar to me. <gblockquote></gblockquote> I've come across a blockquote before, but never a gblockquote. Interest ...

PHP code to create a bottom border in echo statement

Is it feasible to create a bottom border using echo? I'm inquiring about this because I haven't been able to find a direct answer from a reliable source. Essentially, what I want to accomplish is creating a notification similar to those on Faceb ...