| Web Standards Design Discuss accessibility, CSS, XHTML and more. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
|
|
#1 (permalink) |
|
Searcher
Surpass Staff
Joined in May 2003
Lives in Orlando
24,509 posts
Gave thanks: 936
Thanked 787 times
|
To pixel or not to pixel.
What's proper nowadays when coding a website's text display, px or em (or even percents)? Seems to be em.. px is less flexible on all browsers. Is this correct?
__________________
Follow Surpass on Twitter and Facebook
Check out interesting finds on the Surpass Blog .... it's coming. |
|
|
|
|
|
#2 (permalink) | |
|
Surpass Fan
Excelling Contributor
Joined in Nov 2005
Lives in Colorado
Hosted on DEDI
934 posts
Gave thanks: 2
Thanked 94 times
|
Quote:
It is my opinion that em is the most consistant and easiest to scale the entire site with only 1 font size change.
__________________
Where would you be if you were at the highest court in the land (US)? |
|
|
|
|
|
|
#5 (permalink) |
|
Race Surpass
Super #1
Joined in Jul 2006
Lives in Oklahoma City, OK
Hosted on sh102
1,218 posts
Gave thanks: 18
Thanked 86 times
|
I just converted my www.pelicar.info site from using frames to div containers and css. Ran into the whole Quirks vs Standards mode of rendering differences. I also changed the sizing of stuff to em. Anyway, I managed to achieve the same thing I had with frames... the left-side menu stays put when scrolling.
I did discover that if I make a TD element with a font-size of 0.80em, that if I put another table inside that table, it's TD element's font is again reduced by 20%. Fixed that by defining the size for TD TD to be 1.0em so it would keep the same size. But, now my page will allow font-size changes within the browser.. wouldn't before. Still won't zoom the page in or out though... hopefully it does look screwed up in other browsers. I should install Firefox and Opera I suppose..
__________________
|
|
|
|
|
|
#6 (permalink) |
|
muffins
Excelling Contributor
Joined in Mar 2006
Lives in Chicago, IL
Hosted on NONE
644 posts
Gave thanks: 26
Thanked 34 times
|
I vary between using pt and em for font sizes, line-heights.. But I'll use pixels when I want to specify for width's and heights if I'm not dealing with a fluid deisgn.
|
|
|
|