Problem with Bootstrap Sizing

I'm currently utilizing Bootstrap 4.5 for my project where I aim to develop a responsive website starting from large view downwards to mobile. However, when I resize the site to smaller views, it creates a large white gap on the right-hand side. You can access the website by clicking on the following link: Website URL. Do you have any insights into why this issue might be happening? I've included the meta tag below, and if you require additional information, please visit the website through the provided link. Note that I have already tried adjusting box-sizing, removing padding, and margins.

    #tutorials{
    background-image: url("../Images/Header.png");
    background-position: center 0%;
    background-size: cover;
    background-repeat: no-repeat;
}
#scrollBtn {
    display: none;
    position: fixed;
    bottom: 1%;
    right: 5%;
    z-index: 2000;
}
 
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<button onclick="backToTop()" id="scrollBtn" class="btn btn-danger m-3" ><i class="fas fa-arrow-up text-white"></i></button>
<main>
                <section id="tutorials" class="jumbotron jumbotron-fluid vh-100 d-flex justify-content-center align-items-center text-white flex-column">
                    <h1 class="display-1">Tutorials</h1>
                    <hr class="w-50 mx-auto hr-header">
                    <p class="lead">Get the latest Tutorials through this page.</p>
                </section>
                <div class="container-fluid">
            
                    <div class="row">
                        <div class="col-lg-3 col-sm-12 mb-5">
                                <div class="card">
                                    <div class="embed-responsive embed-responsive-16by9">
                                      <iframe class="embed-responsive-item" src="http://tv.adobe.com/embed/1221/24197/"></iframe>
                                    </div>
                                    <div class="card-body">
                                        <h1>Title</h1>
                                        <p class="lead">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iste, voluptates.</p>
                                    </div>
                                </div>
                            </div>
                        <div class="col-lg-3 col-sm-12 mb-5">
                                <div class="card">
                                    <div class="embed-responsive embed-responsive-16by9">
                                      <iframe class="embed-responsive-item" src="http://tv.adobe.com/embed/1221/24197/"></iframe>
                                    </div>
                                    <div class="card-body">
                                        <h1>Title</h1>
                                        <p class="lead">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iste, voluptates.</p>
                                    </div>
                                </div>
                            </div>
                        <div class="col-lg-3 col-sm-12 mb-5">
                                <div class="card">
                                    <div class="embed-responsive embed-responsive-16by9">
                                      <iframe class="embed-responsive-item" src="http://tv.adobe.com/embed/1221/24197/"></iframe>
                                    </div>
                                    <div class="card-body">
                                        <h1>Title</h1>
                                        <p class="lead">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iste, voluptates.</p>
                                    </div>
                                </div>
                            </div>
                        <div class="col-lg-3 col-sm-12 mb-5">
                                <div class="card">
                                    <div class="embed-responsive embed-responsive-16by9">
                                      <iframe class="embed-responsive-item" src="http://tv.adobe.com/embed/1221/24197/"></iframe>
                                    </div>
                                    <div class="card-body">
                                        <h1>Title</h1>
                                        <p class="lead">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iste, voluptates.</p>
                                    </div>
                                </div>
                            </div>
                    </div>
                </div>
            </main>

Answer №1

Here's a helpful tip: Spice up your CSS with this code snippet * {outline: red 2px solid;}. Watching the magic unfold as it highlights overflowing elements and their dimensions without impacting your content size.

Upon implementation, you might notice issues related to overflow. For instance, the nav-bar may display overflowing due to excessive padding-left and padding-right.

Take a look at these images to identify and fix negative margins: https://i.sstatic.net/zMI9k.png

Next, address any extra padding by referring to these visual guides: https://i.sstatic.net/ilp8E.png https://i.sstatic.net/lbIu1.png

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

Transparent Box for Images - Overlay Effect

Is it possible to add text on top of an image with a background, such as the example shown below? <div id="slider" class="nivoSlider"> <img src="images/slide1.jpg"/> </div> ...

Select2 input field not receiving focus when navigating by tab key

When attempting to tab through the fields, I encounter an issue where the fields do not highlight as expected. Despite trying various solutions, such as the following CSS code: .select2-selection__rendered:focus { outline: none !important; box-shadow: ...

The relative positioning is currently being obstructed

Having some trouble using position:relative to shift my logo to the left of my webpage. Oddly, moving it 20px seems to have no effect, but shifting it by 300px downwards causes it to vanish completely. Here's a snippet of my current code: .container ...

Swap out the HTML tags with JavaScript code

I've been looking everywhere, but I couldn't find the answer. Here is my issue / question: I have a page from CKEDITOR with: var oldText = CKEDITOR.instances.message.getData(); So far, so good. The string looks something like this: <table ...

Saving Pictures in Database Without Using jQuery

Hey there fellow developers, I'm currently immersed in a web project that involves reconstructing a social media platform similar to snapchat. To capture images, I am utilizing my webcam with JavaScript and saving the image data to a variable named i ...

What strategies can I implement to streamline my CSS code and avoid repeating the same styles multiple times within my HTML document?

The input box contains predefined values with unique IDs or generates them based on certain rules. Here is the HTML code: <input class="box" type="text" style="width:8%; text-align:center" id="a" value="A" readonly="true"/> <input class="box" ty ...

Footer element failing to apply CSS styling

In the past, I utilized <div> elements for my header and footer sections. However, as I transition to HTML5, I aim to swap them out with <header> and <footer> tags. The previous version of the code included a style definition #footer a { ...

The Bootstrap floating label feature is causing a conflict with the jQuery validation labels

I'm currently utilizing the floating label code snippet from Bootstrap 5 documentation, along with jQuery validation. However, I'm experiencing conflicts with both labels when the error message is displayed. Here are some screenshots showcasing ...

How do you calculate the distance of a 3D model?

I am interested in creating a 3D model of a measuring tape similar to the one shown below: You can view the product image at this link: Link. They use Webgl, but not Three.js. Could someone provide instructions on how to create a measuring tape for a 3D ...

Displaying incorrect symbols with icon fonts

I have successfully integrated icon fonts into my simple web page. Check it out on jsFiddle here My design is similar to this example, but instead of bars, I see a snake icon displayed. How can I fix this issue with the fonts? Here is the code snippet: ...

Organize and eliminate items within a vessel

Looking to manipulate a container with span elements by removing two and re-arranging one. I attempted the following approach: $('span.class5').insertBefore('span.class0'); However, this inserted each span.class5 into every repeating ...

Guide to retrieving specific div table data using lxml?

I am trying to parse a page using lxml where the table data changes when clicked on. from urllib.request import urlopen import lxml.html url="http://f10.eastmoney.com/f10_v2/FinanceAnalysis.aspx?code=sz300059" material=urlopen(url).read() root=lxml.html.p ...

How to Retrieve Values from HTML Using the onkeyup Function in jQuery with Element ID?

Having trouble retrieving values from HTML to jQuery using the onkeyup function to capture key pressed data by ID. I've attempted it, but I can't seem to get the value to display in an alert. Unsure what's going wrong with my code. Can someo ...

Animate the jQuery: Move the image up and down inside a smaller height container with hidden overflow

Check out the fiddle to see the animation in action! The image is programmed to ascend until its bottom aligns with the bottom of the div, and then descend until its top aligns with the top edge of its parent div, revealing the image in the process. ...

Struggling to retrieve HTML tag content with Selenium WebDriver

I've encountered a peculiar issue while using webdriver. The issue seems rather straightforward - I'm attempting to print the names of the text in a dropdown menu, but for some reason, I'm unable to do so despite trying various methods. Met ...

Ways to retrieve span element content

Is there a way to access all the span values within this code snippet? I know how to access one, but I need a solution for accessing all span values. Can anyone help me out with this? p = summaryContainer.parentElement.firstElementChild; <div class ...

Expanding the tree structure in Selenium IDE for data visualization

Just a few days from now, I'll be attempting to create a selenium ide test for a data structure tree. I've encountered a challenge with expanding tree nodes - the issue is that there are numerous TreeExpandoIcons with identical classes and no dis ...

Applying a color scheme to the Datatable rows based on the filters

I am looking for a way to dynamically highlight specific rows in a table based on data retrieved from the server. For example, if the data contains "Activated", I want to change the background color of that row to green. Check out this code snippet for mo ...

Text off-center in Bootstrap Badge

I'm struggling to find a way to center my text with the icon properly. This issue is only happening in Google Chrome. You can view the problem in action on this code snippet. @import url('https://fonts.googleapis.com/icon?family=Material+Icons ...

Two HTML elements positioned alongside each other with inline word wrapping

Apologies for the vague question title, which may not accurately reflect my requirements. This is one reason why I am struggling to find a solution through a simple Google search - I'm unsure of what terms to use. I am attempting to align some "label ...