A
A
Anastasia2020-03-06 15:48:13
css
Anastasia, 2020-03-06 15:48:13

How to properly build blocks with Bootstrap?

5e62452e4a05a112322862.png

The area of ​​the container -> row block is highlighted with red lines.

I would like to give the div with the text col-xl-4, and the div-y with the categories col-xl-8. But as you can see on the layout, the div with the text protrudes beyond the container block.

What properties should I set for the block with the text (col-xl-4) so ​​that it is the same as on the layout and adapts correctly?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey, 2020-03-06
@AleksRap

Using the entire bootstrap or its grid not for prototyping, but for layout, when grids have more than 93% browser support is nonsense.
For layout layouts, just use grids, always, everywhere

L
lRasterl, 2020-03-08
@lRasterl

You can use flex. Create a div class="d-flex justify-content-between" . Throw two blocks into it - the first is responsible for the text, the second for the images. In general, read how the justify-content-between property works.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question