Answer the question
In order to leave comments, you need to log in
Creating dynamic blocks: when one is hidden, does the second fill the entire width?
Good time everyone.
There is such an idea - I want to implement a dynamic grid on bootstrap.
Example:
<div class="col-sm-12">
<div class="col-sm-6">Первый</div>
<div class="col-sm-6">Второй</div>
</div>
Answer the question
In order to leave comments, you need to log in
that's what flex is for. either write it yourself, or take version 4 of bootstrap https://getbootstrap.com/docs/4.0/layout/grid/
Flex, but there is also an old-fashioned way - tabular layout, and this is not a crutch .
When adding
.cell.first {
display: none;
}
we get what we expect.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question