H
H
hesy2019-02-21 18:49:10
css
hesy, 2019-02-21 18:49:10

How to stretch blocks to the full width of the container?

Greetings!
There are blocks (figures) that are on the same line and pressed close to each other, their number can be any, the goal is to fill / stretch them across the entire width of the container.
How can this be done, please?
I'm using Bootstrap 4, but you can use pure css as well.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2019-02-21
@ellenripley4

Set the container to be a flex container and each item inside flex-grow: 1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question