Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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).


That 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!


I 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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: