bootstrap 4 container fluid not full width after removing default padding


enslavement

I want to make a full width webpage through Bootstrap 4.

I tried removing the original 15px padding of the container fluid and it still doesn't work.

jsfiddle for details. I marked the entire background purple, but you can see that the ultralong waves are not fully covered on the purple background.

<style>
        .container-fluid {
            padding: 0 !important;
        }
    </style>

jsddle is here

Zim

Just use p-0and utility classes on col and jumbotron ( no extra CSS required)...m-0

<div class="container-fluid">
    <div class="row">
        <div class="col-md-12 p-0" style="background: purple;">
            <div class="jumbotron m-0">
                <h2>
                        Hello, world!
                    </h2>
                <p>
                    This is a template for a simple marketing or informational website. It includes a large callout called the hero unit and three supporting pieces of content. Use it as a starting point to create something more unique.
                </p>
                <p>
                    <a class="btn btn-primary btn-large" href="#">Learn more</a>
                </p>
            </div>
        </div>
    </div>
</div>

https://www.codeply.com/go/iAQiRARTFR

Related


Bootstrap container fluid is not the full width of the screen

Blaze 26 I'm working on a website and I'm going to start with a mobile stylesheet first. But the width of the container fluid is not the same as the width of the window. The way I am trying to fix this is: .container-fluid{ width: 105% } The problem n

Bootstrap container fluid is not the full width of the screen

Blaze 26 I'm working on a website and I'm going to start with a mobile stylesheet first. But the width of the container fluid is not the same as the width of the window. The way I am trying to fix this is: .container-fluid{ width: 105% } The problem n

Bootstrap container fluid is not the full width of the screen

Blaze 26 I'm working on a website and I'm going to start with a mobile stylesheet first. But the width of the container fluid is not the same as the width of the window. The way I am trying to fix this is: .container-fluid{ width: 105% } The problem n

Bootstrap container fluid is not the full width of the screen

Blaze 26 I'm working on a website and I'm going to start with a mobile stylesheet first. But the width of the container fluid is not the same as the width of the window. The way I am trying to fix this is: .container-fluid{ width: 105% } The problem n

Bootstrap container fluid is not the full width of the screen

Blaze 26 I'm working on a website and I'm going to start with a mobile stylesheet first. But the width of the container fluid is not the same as the width of the window. The way I am trying to fix this is: .container-fluid{ width: 105% } The problem n

Container fluid not full screen width

sim card My container fluid element has a margin below the right for all screen sizes and a scrollbar at the bottom. i don't want this This question has been asked before, but none of the answers worked for me. Some of the previous posts didn't seem to help so

Container fluid not full screen width

sim card My container fluid element has a margin below the right on all screen sizes and a scrollbar at the bottom. i don't want this This question has been asked before, but none of the answers worked for me. Some of the previous posts didn't seem to help som

Container fluid not full screen width

sim card My container fluid element has a margin below the right on all screen sizes and a scrollbar at the bottom. i don't want this This question has been asked before, but none of the answers worked for me. Some of the previous posts didn't seem to help som

Container fluid not full screen width

sim card My container fluid element has a margin below the right for all screen sizes and a scrollbar at the bottom. i don't want this This question has been asked before, but none of the answers worked for me. Some of the previous posts didn't seem to help so

Container fluid not full screen width

sim card My container fluid element has a margin below the right for all screen sizes and a scrollbar at the bottom. i don't want this This question has been asked before, but none of the answers worked for me. Some of the previous posts didn't seem to help so

Bootstrap container fluid image not centered after max width

chase I have an image (currently 1305 x 352 px) inside a fluid container like this: <div class="container-fluid" id="lion-div"> <div class="row-fluid"> <img src="image.png" class="img-responsive"></img> </div> </div> When the page width is equ

container-fluid and side padding with Bootstrap 3

Andrew Koper I want my page's content to take up the full width of the screen with a little padding on the right and left and be fluid, but when I wrap my div.row and div.col-md-x in a <div class="container-fluid"> the page's content touches the sides of the s

Bootstrap issue: container fluid is not 100% width

Ethanur Haq Kanan, MD I am working on a real estate website project. I am trying to achieve 100% width by using .container-fluid. I have followed several solutions mentioned on Stack Overflow. But I can't. Here is a screenshot of the problem: Here is the codep

Bootstrap 3 full width Big Mac outside container after <header>

Adam Brown Start with Bootstrap 3 and get used to it gradually. I've copied the navbar from the Bootstrap 3 documentation as it has the exact functionality I want and why the scroll wheel was invented hey. I want to put the Jumbotron after the header , but I w

Bootstrap 3 full width Big Mac outside container after <header>

Adam Brown Start with Bootstrap 3 and get used to it gradually. I've copied the navbar from the Bootstrap 3 documentation as it has the exact functionality I want and why the scroll wheel was invented hey. I want to put the Jumbotron after the header , but I w

Bootstrap 4: Get full width dropdown for main menu container

Elaine Byene I want to show the dropdown menu from the initial position of all menus and keep the width of 600px. So even if I try to open the dropdown for say Main Menu 2or Main Menu 3or Main Menu 4, the dropdown should start at the Main Menu 1position . Here