New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.row causes horizontal overflow #8959
Comments
#8966 appears to be a repeat of this issue. |
@Joyrex Oh damn, I didn't searched if there is already such a issue. |
No, you're good - your issue came BEFORE 8966 - I was referring to it since 8966 didn't bother searching before posting! |
this is caused by the following lines from mixins.less:
Which produces the following CSS
|
Could sombody fix this and submit a pull request? |
I'm also experiencing this issue (on iPad/iPhone). Moving from portrait to landscape then back to portrait. Horizontal scrollbars appear and a gutter down the right hand side (the same colour as the body colour). Link : http://bit.ly/13xmgEg |
RC2 fixed this. Its broken again in the 3.0.0 release <body>
<div class="row">
<div class="col-lg-12">
<p>Hello world</p>
</div>
</div>
</body> |
I confirm that this fix in RC2 have been reversed in e4bb388. In the same commit, padding was added to body:
...but then has been removed in 3.0.0 release. |
So the updated solution between RC2 and final was adding padding to the container. Add that, or another containing element with padding—and you're set. |
Thanks for the quick reply (and thanks so much for Bootstrap. Very awesome!). |
Basically the structure of any content now needs to be: ` The pros are you don't add any manual styles, the cons are you now have another nested element to deal with. |
@Joyrex As I experienced, you can put the |
Hmmm. I dunno - back in Bootstrap 2.x, I would have said sure, go ahead and do that, but with BS3, I've found myself having to move combined classes into their own separate elements in order to get consistent results (the .well class comes to mind, where I could add .well to a FORM element, and it would style correctly, but now I've had to put .well in a separate containing/wrapping DIV. Can we have some input from the Bootstrap Pros on what's considered "best practice"? |
so .row HAS to be paired with .container now? what about full width grids? |
I'm finding that using .row and .container as combined classes shifts the centering of the items you put inside to the left. This does not happen when using them in different classes. |
I used the ancient .row-fluid to fix it temporaly, till someone repair it 👍 |
Full width grid problems is #9998. |
This issue is still a problem, will Bootstrap be fixing it? |
Current successor issue is #10711. |
I threw this into a separate .less file and included it.
Now I can create this without overflow:
|
See http://getbootstrap.com/css/#grid and 6273604. |
@cvrebert is right: see http://getbootstrap.com/css/#grid and 6273604, which introduced the .container-fluid class. Based on that commit, to solve the horizontal scroll problem caused by .row negative margins in page-wide layouts, you need to wrap your .row elements with a .container-fluid element. For example:
Hope that helps! |
…prevents horizontal scroll on full-width pages)
…prevents horizontal scroll on full-width pages)
My (empty) row always causes a horizontal scrollbar to appear (~10px), and I don't think just hiding it is the best solution. Here's my code:
Note: The column is in my code empty, too.
Thank for your help, hice3000.
The text was updated successfully, but these errors were encountered: