H
H
Hoffman_ZZZ2018-03-15 17:04:50
JavaScript
Hoffman_ZZZ, 2018-03-15 17:04:50

Why doesn't Masonry js work for blocks, one=40%, second=60%?

Good day!
Please tell me about Masonry js, the task is to arrange the blocks in 2 columns, 1 = 40%, 2 = 60%, but for some reason they do not stand next to each other. If I put the first block 20%, then everything becomes, I don’t understand why.
Example

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Kamyannoy, 2018-03-15
@redfieldone

Have you tried it without a border? =) It still takes 2 pixels, and you have a clear width of 100%. Those. Or remove the bodred or reduce the width by at least 1%

T
tyzberd, 2018-03-15
@tyzberd

https://jsfiddle.net/eho3jgtg/2/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question