Answer the question
In order to leave comments, you need to log in
How to limit responsive layout width in bootstrap?
How to limit site width for bootstrap responsive layout?
The essence of the problem. When the screen width is less than 1280 pixels, adaptive layout breaks the design. For mobile small screens, a separate version works. But sometimes they come from computers with a resolution of 1024 pixels. How to prevent bootstrap from adaptively collapsing layout when screen width < 1280 px?
Answer the question
In order to leave comments, you need to log in
.container{
width:960px !important;
}
Or other width
AND Remove line
Alexandr Sharomet
Right. You can limit the width of the screen area.
Don't forget that the order below takes precedence in CSS.
First:
<link href="/bootstrap.min.css" rel="stylesheet">
below:
<style>
.container{
width:960px !important;
min-width:100%;
max-width:960px
}
</style>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question