views:

102

answers:

2

I've found many suggestions on using different font-sizes and measure units for websites. Most of them suggest to define body font-size in % (100.1%) and use em for the rest part. I realize this is very useful for preserving the proportions while zooming in and out, especially for older browsers. But today most of the web browsers can constrain the proportions of website elements even for the fixed sized elements.

So should we still use % and em or we can use pixels?

Thank you.

+1  A: 

Internet Explorer 6 ( and 7? ) can't properly zoom for pixels so I would still rely on %/ems.

meder
... or "pt" when I don't want to inherit a base font size from a parent element.
Matthew
? **Never** use `pt` on-screen. It's just as unresizable as `px`, but as a bonus is also a different size on different OSs. `pt` is suitable for print stylesheets and nothing else.
bobince
+2  A: 

I still suggest using em when you are assigning font sizes. You're right about the newer browsers zooming in, but not everyone upgrades their browser, and accommodating the visually impaired is always a good thing.

Robert Greiner
...and some people would like to be able to use their preferred text size without having to make the images on the page huge (and end up with horizontal scrolling on fixed-width sites).
bobince