Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

White Space Right Side of Bootstrap Website

I've been trying all kinds of solutions listed on StackOverflow to solve this problem but can't seem to get it right. There is white space on the right side of our website in the mobile view.

Any tips? Thank you so much. Been stuck for hours.

http://www.hackerparadise.org

like image 532
ipiyale Avatar asked Jan 29 '26 12:01

ipiyale


2 Answers

I've added :

 html  {

    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
    overflow-x: hidden; 

}

Into your CSS at the very top above the other classes and it seemed to fix your issue.

like image 59
Pouya Ataei Avatar answered Feb 01 '26 01:02

Pouya Ataei


Most of the problems I can see is on your bootstrap structure. You are adding additional row without adding another div with a grid class e.g col-md-*

Sample:

<div class="container">
    <div class="row"> 
        <div class="row"> <!-- additional row -->
            <div class="inner-div">
                Inner Div
            </div>    
        </div>
    </div>
</div>

A clear problem is visible in this fiddle when you scale down your browser.

Solution:

Before adding another row class element you must add first an element which has a grid class

<div class="container">
    <div class="row">
        <div class="col-md-12"> <!-- DIV with a grid class -->
            <div class="row">
              <div class="inner-div">
                Inner Div
              </div>    
            </div>    
        </div>
    </div>
</div>

You can see it's fixed on this fiddle

In your case I can see the problems under #day and #about elements.

Under #day:

enter image description here

Under #about:

enter image description here

Also the other problem is on the css. Add this to your css:

.btn-design {
   margin-left: 0;
   margin-right: 0;
}
like image 40
Robin Carlo Catacutan Avatar answered Feb 01 '26 02:02

Robin Carlo Catacutan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!