2 ms·
It's easy-peasy once you get the general algorithm down: 1. Is there a Stack Overflow CSS snippet you can use as-is that solves your problem? Score! 2. No? Fi
by Androider 8y ago
It's easy-peasy once you get the general algorithm down:
1. Is there a Stack Overflow CSS snippet you can use as-is that solves your problem? Score!
2. No? Fiddle with random bits until it looks OK in your browser of choice (Chrome). Display: block and position: absolute are great time savers, slap that on most things.
3. Ship it! Onto the next feature!
Pro-tip: Pixels totally work and you should just stick to that everywhere. The browsers and device manufacturers have kindly taken the necessary steps to make it Just Work no matter what the medium.
In case you think I'm being sarcastic, only half. Nobody cares about your beautifully cascading, resolution independent em's and semantically beautifully structure. The whole thing will be run through an uglifier anyway and probably you should just have used JS for your runtime generated layout anyway if you have any kind of dynamic behavior.