D
D
Dima2020-05-08 13:37:29
css
Dima, 2020-05-08 13:37:29

How to make squares depending on the width?

grid_wrapper
grid_item
grid_item
grid_item
How to make squares out of grid_item on css by setting only the width for example 33.333333%.
Without js

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dima Pautov, 2020-05-08
@bootd

padding-top with percentage value
https://jsfiddle.net/9o8b6em3/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question