D
D
Dezosick2019-01-05 06:57:35
css
Dezosick, 2019-01-05 06:57:35

How to lay out blocks on a grid using bootstrap?

PwTMG.png
it is necessary that all blocks are equal in height and with equal indents, and on a mobile phone a large block is full width and 4 small ones under it are also full width

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Trofimuk, 2019-01-05
@vaigor

But on bootstrap everything is simple

<div class="row">
    <div class="col-md-6 block"></div>
    <div class="col-md-6 block">
        <div class="col-md-6 block"></div>
        <div class="col-md-6 block"></div>
        <div class="col-md-6 block"></div>
        <div class="col-md-6 block"></div>
    </div>
</div>

.block {
background: #f48942;
border-radius: 5px;

On the mobile version, write down your block sizes. And make adaptability the way you like it!
There are many guides on YouTube about it!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question