N
N
Nikolai Kozlov2017-02-27 16:18:25
css
Nikolai Kozlov, 2017-02-27 16:18:25

How to make square responsive divs on flexbox?

Task:
1. There is a block.
2. Its width must be equal to the width of the parent.
3. Its height must be equal to its width for any.
4. When changing the width of the parent, the block should change proportionally (width and height should be equal to each other).
5. It is desirable that it be on flexbox.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2017-02-27
@AndrewHaze

codepen.io/AndrewHaze/pen/LxaQeE

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question