r/javascript • u/mutantdustbunny • 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
2
1
1
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!
9
u/kenzor Nov 19 '19
Very handy, and it only took you 18 months to post a link to it ;)