Answer the question
In order to leave comments, you need to log in
What to write in css?
I am doing the layout on bootstrap, I want several blocks on desktops (lg, xl) and tablets (md) to look the same (i.e. just remove the free space on the sides). How to implement it? When using col-md, the columns become narrower, the text leaves, and there is a lot of free space
. UPD: I put it a little wrong, I have 4 blocks in a row inside row, which must be left unchanged
Answer the question
In order to leave comments, you need to log in
well, write col-md-12 col-sm-12 col-lg-12 col-xs-12 then there will be a full-width block everywhere. Well, or put the number you need
What version of bootstrap is being used?
Suppose bootstrap 4
If you want to keep 4 blocks per line, then for each of them you need to set the width to 12/4=3. That is col-3, and in order for this to work only for certain breakpoints, then it should be something like this: col-12 col-md-3
Then starting from a width of md and more there will be a width of one quarter.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question