1
I’m studying Bootstrap and I would like to ask a question, I did an experiment here and I would like to know how to do it for when it is minimized to cell, how to automatically align the grids, when I minimize it is superimposed to my Serction, unless I put the div with less margin-top, but the idea is to stay in the middle and when they are minimized, get set up, as I do?
My code below
<div class="deve">
<div class="container">
<div class="row">
<div class="col-md-3 col-6">
<div class="branco">
</div>
</div>
<div class="col-md-3 col-6">
<div class="branco">
</div>
</div>
<div class="col-md-3 col-6">
<div class="branco">
</div>
</div>
<div class="col-md-3 col-6">
<div class="branco">
</div>
</div>
</div>
</div>
CSS
.deve { background: black; width: 100%; height: 380px; position: absolute; }
.branco { background: white; width: 100%; ; height: 130px; position: relative; margin-top: 90px;}
Thank you!
Have you tried using the classes
col-sm-*
?– Woss
Already yes, Anderson, it did not help, to understand what I want best, when I edit the margin-top and put 40px and minimize pro col, it is the way I want!
– Diego Dias
Vc is using margin-top only for white blocks to get in the middle?
– Sam
Yes, I have my Section fixed at the size of 380 pixels, and I have 4 Ivs inside that Section, but in col-Md if they are aligned in the middle, when they go to col- they are superimposed due to the height and width of the default Section, wanted a solution for Ction to automatically increase width when it goes to col, or I can align the 4 Divs inside the Section, I’m able to be clear?
– Diego Dias