Skip to content Skip to sidebar Skip to footer

Prevent Columns From Wrapping In Bootstrap

Similar to this question Bootstrap 3 - grid with fixed wrapper - Prevent columns from stacking up I need to prevent my bootstrap columns from wrapping. The issue I have however is

Solution 1:

LinKeCodes Hi there. To have 13 columns and to not have any drop down to a new row when resized.

Just divide the view width of the screen by 13, and create your own class of col-13. You would need to write some css like this...

.col-13 {
    width: calc((100vw / 13 ) - 1vw); 
    padding-left: 0px;
    padding-right: 0px;
    margin-left: 0.5vw;
    margin-right: 0.5vw;
    float: left;
}

Here is a working Fiddle for you to look at.

Hope this can help to get you on the right track here.

enter image description here

ADDED TO THIS Here is an updated Fiddle using overflow-x: scroll; to help do what you want to add but hide the 13th block.

enter image description here

Post a Comment for "Prevent Columns From Wrapping In Bootstrap"