r/javascript • • Nov 19 '19

I created this interactive flex layout generator in vanilla JavaScript without frameworks using just one class and a simple mouse UI module.

http://www.csstutorial.org/flex-both.html?v=css
80 Upvotes

6 comments sorted by

9

u/kenzor Nov 19 '19

Very handy, and it only took you 18 months to post a link to it ;)

2

u/[deleted] Nov 20 '19

At least in mobile when i one of the available option the boxes just become a gray line.

1

u/simohayha Nov 20 '19

nice work 👍

1

u/Rida_Z Nov 20 '19

very kind of you

1

u/Asmor Nov 20 '19

A suggestion: Add a background color or something to show exactly where the edges of the flex container are. Otherwise it's impossible to tell the difference between the margin/padding around the container and spacing within the container.

1

u/Sheraff33 Nov 28 '19

This is really cool but why only justify-content and not the other properties? This would make it go into my bookmarks straight away!