HTML/CSS: What should I use to define image height/width to make it resolution independent?
Posted
by Tedy
on Stack Overflow
See other posts from Stack Overflow
or by Tedy
Published on 2010-04-23T01:55:27Z
Indexed on
2010/04/23
3:03 UTC
Read the original article
Hit count: 269
I've read all over the Internet that I should not define fonts (or anything) with absolute pixel height/width/size and instead, use EM ... so that on higher resolution displays, my web site can scale appropriately.
However, what do I use to define IMAGE height/width ... because images won't scale well (they look pixelated)
UPDATE:
To clarify, I'm not referring to page zoom. I'm referring to how to make my web application resolution independent so that it will look correct on higher DPI displays.
© Stack Overflow or respective owner