Responsive Grid System How to resize to 960px
-
21-12-2019 - |
Question
I used this grid system. But its almost got 1000px width, I want to resize that 960px but I don't know how to do it. I also tried to give body{width:960px; margin:auto;} but this time I lost to main idea of responsivity..
Solution
The grid system use percentage for responsiveness. You may try to enclose the grid in a .container and there you define the width:
HTML
<div class="container">
<div class="span_12_of_12">
...
</div>
</div>
CSS
.container {
width: 960px;
margin:0 auto;
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow