Is there a way to remove the extra space on the right side of a Bootstrap website?

I'm having trouble with the white space on the right side of a website I created using Bootstrap. No matter what I try, it just won't go away. If you have any solutions, please share them with me.

<!doctype html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Contact | Enba Camping</title>
    <link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c9aba6a6bdbabdbba8b989fce7fae7fb">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
    <link rel="stylesheet" href="style/style.css">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
</head>

<body>
    <script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="60020f0f14131412011020554e534e52">[email protected]</a>/dist/js/bootstrap.bundle.min.js"
        integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
        crossorigin="anonymous"></script>


            <!-- NAV -->
            <div class="container-fluid">
                <div class="row">
                    <div class="col-sm-12 p-0">
                        <nav class="navbar navbar-expand-lg bg-body-tertiary p-0 ">
                            <div class="container-fluid bg-dark ">
                                <a class="navbar-brand text-light mb-2" href="index.html">Enba   Camping</a>
                                <button class="navbar-toggler btn btn-light btn btn-outline-light bg-light m-2"
                                    type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavAltMarkup"
                                    aria-controls="navbarNavAltMarkup" aria-expanded="false"
                                    aria-label="Toggle navigation">
                                    <span class="navbar-toggler-icon "></span>
                                </button>
                                <div class="collapse navbar-collapse" id="navbarNavAltMarkup">
                                    <div class="navbar-nav ms-auto">
                                        
                                        <a class="nav-link  text-light text-center" aria-current="page"
                                            href="index.html">Home</a>
                                        <a class="nav-link text-light text-center" href="aboutus.html">About us</a>
                                        <a class="nav-link active text-light text-center" href="contact.html"
                                            aria-disabled="true">Contact</a>
                                    </div>
                                </div>
                            </div>
                        </nav>
                    </div>
                </div>
            </div>

            <!-- NAV END -->

            <!-- ABOUT US -->
            <div class="container-fluid p-0 bg-dark text-light">
                <div class="row">
                    <div class="col-sm-6 ps-0">
                        <img src="images/lesly-derksen-F4fH5dAfZnE-unsplash.jpg" alt="" class=" d-block w-100 c-img ">
                    </div>
                    <div class="col-sm-6 d-flex justify-content-center align-items-center ">
                        <div class="text-center">
                            <h2 class="fw-bold display-4 ">Bize Ulaşın</h2>
<!-- ABOUT US -->

                           ...
                        </div>
                    </div>
                </div>
            </div>
            <!-- ABOUT US END -->

           ...

</body>

</html>

If you want to see an image description click here. The page is overflowing due to the container structure and I would like it to fit the full screen without leaving any white spaces on the left and right sides

Answer №1

In order for this to function correctly, it is necessary to integrate the following code snippet into your CSS stylesheet: .row{ margin-right: 0px; }

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

Menu options moved to the right of the screen

I am encountering a small issue with my dropdown menu that I can't seem to solve. The first item in the dropdown menu appears correctly, but the second item is slightly shifted to the right. It seems like the margin-right applied to the link may be c ...

"Exploring ways to implement validation for multiple email addresses in a textarea using JQuery or JavaScript, while allowing the addresses to be separated by semicol

NOTE: Each email ID must be unique. An empty string value is allowed to be added. Email IDs should be separated by semicolons and commas. Basic validation of email IDs is necessary for entry. [![ $("#d-notification").focusout(function () { var ...

I am having trouble with Owl Carousel in my code. Can anyone help me figure out what is causing the issue

I'm having trouble getting my owl carousel to display when I try to run it. I've made sure to link the correct stylesheets and scripts, but nothing is showing up on the page. Even after trying to link the stylesheets from both a local source and ...

Responsive Menu Functionality Limited to Desktop Devices

I have created a customized template for a client that features a simple desktop and mobile menu system that switches based on css media queries. While I have successfully implemented this method on several other sites, I am facing some challenges with th ...

Unchanging bottom section with changeable information

I have a unique website design in mind that involves using an image as the background and placing the content within a box. View my website design here However, I am facing an issue with a specific page on this website. The page contains accordion buttons ...

CSS dropdown menu - overlapping elements an issue?

Discover our test server here: Check out the box labeled "Organizers" on the top right corner... I've been struggling to bring the drop-down menu to the front layer. I've experimented with positioning and z-index, but so far, no success... Any ...

Looking to grab the names of clicked elements using VueJS

Utilizing Vue, I am in need of determining which element was clicked - one being an i and the other a button. This information is crucial for passing a variable to a shared modal that displays different text based on the click event. While I could create t ...

Ways to left-align the columns themselves, rather than the content within them, in a table

Creating a table without knowing the number of columns in advance can be tricky. If you have a wider first column and want the rest to be the same width, it's important to align them properly so they fill the space on the left and leave room on the ri ...

How can I transfer the height of a parent div to a child div with absolute positioning?

I'm facing an issue where the child div (.timeline) needs to adjust its height as the parent divs (.tea-history) height increases. However, using height:inherit; didn't work as expected because the child div inherited an auto height from the pare ...

Is there an easy way to horizontally align <div> b with <div> a?

Whenever I type <div name="a">Foo</div><div name="b">bar</div>, I desire horizontal alignment over vertical alignment. Is there an easy method to achieve this? By default, the alignment is set to vertical. ...

The ongoing challenge with the 'active' class in jQuery

Here is an example of a menu: <ul class="nav nav-list"> @for (int i = 1; i <= pageno; i++) { <li> <a href="~/Insts?page=@i&count=10">@i</a></li> ...

Angular's $scope problem

Despite reading numerous inquiries regarding this particular problem, I am still unable to grasp the solutions provided. Various examples of modules and controllers have been studied, yet my attempts at implementation have been fruitless. In an attempt to ...

Can flexbox elements be animated as they scroll?

Wondering if it's feasible to animate flex elements upwards when scrolled? Attempting to replicate this effect: https://codepen.io/Sergiop79/pen/bxjGEe I want to apply this to the elements below (styled in flexbox), either the entire "row" or each i ...

Guide to making a Material Design Radial effect animation

I am looking to create a unique toolbar effect by following the material design radial reaction choreography guideline. https://i.stack.imgur.com/6oB8r.gif I want to achieve this using an angular 2 transition, but I need some guidance on how to implement ...

Steps for designing a navigational bar with tabbed style that is responsive

Upon inspecting the sample code, you may have noticed that the .current class leaves a grey area at the bottom. I am trying to make it white all the way down, but every attempt to increase the size of the li also extends the ul. I'm facing an issue w ...

What is the best way to superimpose two images with the same width but varying heights, where one remains static and the other scrolls seamlessly

I'm in the process of creating a webpage that will feature a .png image of a computer with a transparent screen. Upon this image, I plan to overlay a screenshot of a website and allow users to scroll through it as if they were navigating a real webpag ...

Issues with keyboard accessibility in drop down menus

Looking to improve the keyboard accessibility of my menu bar. Swapped out all instances of :hover with :focus, but unfortunately dropdown menus are still not accessible via keyboard. Does anyone have a solution for this issue? Appreciate any help! ...

Utilizing CSS for positioning forms and images with floats

I have implemented a dropdown box that allows users to select one of eight images, which is then displayed on the webpage. However, currently the image appears directly above the dropdown box and I would like to format it so that the image is shown on the ...

Divide the bootstrap form from the outcome

I am in the process of developing a basic web application using Bootstrap that involves taking user input on a form, sending it to a database, and then displaying the data in a table below the form. The main challenge I am facing relates to the styling asp ...

Is there a way to ensure that a CSS flex child occupies its own row exclusively?

Within this flex container that displays children in a row with wrapping enabled, most components look good side by side. However, there is one component - an input slider that I want to place on its own row, taking up the entire width of the container. I ...