7 ms·
rems don't work either because there are instances where you need to have things line up exactly. For example, if you have 3 columns. You will be one pixel out.
by RandyRanderson 8y ago
rems don't work either because there are instances where you need to have things line up exactly. For example, if you have 3 columns. You will be one pixel out. There are no good ways to fix this. See [0]
https://johnresig.com/blog/sub-pixel-problems-in-css/ https://johnresig.com/blog/sub-pixel-problems-in-css/
CSS should only be used to appease those ppl in your org that read/write more blog posts than code. Use JS if in doubt. You're welcome.
- dan-robertson 8y agoI tried and failed to recreate that example (from 2008). Modern browsers do seem to do a reasonable amount of sub pixel rendering. Maybe rems are bad but that article does not demonstrate it.
- RandyRanderson 8y agoDid you try it on ie11? That was the only one we experienced it on. Of course we had to support ie, which meant a layout re-write. :<