div's in a box arrangement

melseruen

New Member
i spent alot of time trying to do this:
3gzyv.png
black square is a divs(not have to be a div) 'container'.all the other squares are divs or spans or whatever (its not the issue)can someone direct me how to accomplish this? plain html,css,js *i tried to make all squares divs but then because in one line their is a sqaure with different height the next line will be with missing 'parts' and then tried to manage this issue with margin- but it didnt work out and i am sure its not that difficult?Thanks alot.
 
Back
Top