Skip to content
This repository has been archived by the owner on Mar 28, 2018. It is now read-only.

Switch from interpolated margins to CSS columns #19

Open
Flarp opened this issue Oct 18, 2017 · 0 comments
Open

Switch from interpolated margins to CSS columns #19

Flarp opened this issue Oct 18, 2017 · 0 comments

Comments

@Flarp
Copy link
Owner

Flarp commented Oct 18, 2017

As of now, interpolated margins are used to put everything in a column. This is no good, CSS columns should be used instead. It would make the code so much nicer.

return `<div style="width: 200px; height: 300px; position: absolute; left: ${200 * (ind % 3)}px; top: ${300 * Math.floor(ind / 3)}px; display: inline-block" id="distri-item-${ind}">

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant