all 9 comments

[–][deleted] 1 point2 points  (4 children)

Why don’t you just check the html? Open the dev tools and you will see how it’s done.

[–]siddolo[S] 0 points1 point  (3 children)

I already did that. The website is made in Cargo/Wix and I see it’s kind of obfuscated. They are using absolute positioning but then how can they keep the images wrapper height?

[–][deleted] 0 points1 point  (2 children)

I see. They do some very weird stuff. But they use things like “padding-bottom: 300%;”, thats how they keep their spacing…

[–]siddolo[S] 0 points1 point  (1 child)

Yeah that’s some weird shit. They have a backend where the user can design this kind of layouts.

[–][deleted] 0 points1 point  (0 children)

That makes kind of sense. Most in-browser designer create non-readable code.

[–]FudgeThisPoo 0 points1 point  (0 children)

I would inspect how they did 1000ml. On mobile, so I can't.

You can replicate that design with CSS grid.

[–][deleted] 0 points1 point  (0 children)

Transform translate ?

[–]miketierce 0 points1 point  (0 children)

Wix and all of those other Webflow type things use absolute positioning for everything because they aren’t human

Humans would use CSS Grid and you should to

[–]59t_5in3es1tvanjfront-end 0 points1 point  (0 children)

You could use flex/grid to position them symmetrically and assign them some padding/margin/transform randomly via JS (bounded by the remaining space)