R
R
rinatoptimus2015-09-05 00:23:59
css
rinatoptimus, 2015-09-05 00:23:59

How to change the width of the content part in Bootstrap 3?

The layout is 1140px wide and the content is 980px. Can you suggest how to implement?
If you write max-width: 980px for the container, will that be correct?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
crazyivan_ru, 2016-04-20
@rinatoptimus

It is impossible to do what you need on the installed Bootstrap (more precisely, you can, but you will need to change a lot of styles in a lot of files), and all attempts to set other values ​​for the Bootstrap system variables "on the forehead" will lead to the fact that in the most unexpected places the grid will lead yourself in an absolutely inadequate way, in general 1140px is the standard container width of the standard version of Bootstrap, if it does not suit you, then you need to compile your Bootstrap for yourself - this can be done manually based on source files, or automatically, here - Customize and download Bootstrap , change the necessary parameters there (the width of the container is also there - in the Container sizes block), and just compile and download your Bootstrap (button at the very bottom).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question