N
N
Nick Bukovskiy2018-07-18 18:40:44
css
Nick Bukovskiy, 2018-07-18 18:40:44

How to divide a container into even parts depending on the number of blocks?

Let's say there is a 320px block. It has 3 divas with different inscriptions. How can I make them line up in this div with the same width. And if you add then the 4th div. Would they be divided into 4 equal parts?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
�
ⓒⓢⓢ, 2018-07-18
@sonterix

https://codepen.io/anon/pen/PBGNLZ

M
markmariner, 2018-07-19
@markmariner

You should use Flexbox or CSS Grid Layout .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question