13 ms·
This is damn cool. Im just curious as to why the developer, and a lot of developers, dont fully utilize css to handle positioning? Example, when the window resi
by emehrkay 14y ago
This is damn cool. Im just curious as to why the developer, and a lot of developers, dont fully utilize css to handle positioning? Example, when the window resizes, some JS runs. If the colors' containers were percentage-based, the percentage would only need to change when one is added or removed, not when the window is resized. It makes me feel like people dont fully understand how to make certain layouts work without JS (I'm sure this dev does).
- hailpixel 14y agoThat is a much smarter way of doing it! This was a weekend hack that I threw together. If I readdress the app, I'll probably rewrite the layout to work that way. Thanks for the suggestion!
- emehrkay 14y agoI try to approach layout with css being "~free" and JS having a substantially higher cost. Not saying that I dont use JS to assist in laying things out, I just look for a css-first solution