�
�
â–ª â–ª2016-03-30 09:50:14
css
â–ª â–ª, 2016-03-30 09:50:14

Make div look like a grid?

Hello. I just can not decide how to make a block with information in the cells. There will be 3 blocks. In each dark square, I want to place text. Of course, you can use a gallery script in the same style, but it is already in use. Is it possible to do something in css? So that this grid can be scaled.
ps now I see only a rough option - to make these blocks in an absolute position and for each widht 50%, since if you make position relative, float:left,right, then when scaling they will start to run into each other, because of which one will go under another.
Untitled1j_7716352_21328854.jpg

Answer the question

In order to leave comments, you need to log in

4 answer(s)
G
Gregory, 2016-03-30
@kingdomofcrooked

Use flexbox

D
devstudent, 2016-03-30
@devstudent

why would they come? parent is position relative, width 100%, they are also position relative, width 33% (if there are three pieces) + float.

P
Pshkll, 2016-03-30
@Pshkll

isotope.metafizzy.co
masonry.desandro.com

W
Web Developer Blog, 2016-03-30
@Alexey_Suprun

Alternatively, use multiple blocks

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question