(CSS units) Bye Bye "px" -- Hello "em"
Most developers have their own bag of bad habits they carry with them since forever. In my case, one of them is being unnecessarily loyal to the "px" measurement unit. So I've decided to take the "em" plunge.
First thing I learned there, is that it doesn't make much sense to use "px" values on margins, padding, line-height or letter-spacing when all the font sizes are set by magnification level. In other words, once you start using "em", it's just logical to go all the way with it. If you decide you want that title font larger in the future, you're going to want those other 3 values to follow suit. I can't even think of a scenario when you wouldn't.
So, "em" all the way, right?
What about images, which would be placed via Div backgrounds... could the canvas area maintain its proportionate size via "em", or would I have to go "%" there?
Which leads us to my final question...
Since "em" is just a fancier "%" why not use "%" for everything?
PS: I've read what all these units do in theory, I'm looking for more of a practical answer from people who've committed to a unit and why they chose that unit (what obstacle they might've encountered along the way that made them commit to it).
