Re: [css-d] Consistent Cross platform font size

2006-11-16 Thread Bradley Wright
On 16/11/2006 00:11, Graham Anderson wrote: > attribute for the Body > strstr ($_SERVER['HTTP_USER_AGENT'], "Macintosh") ? > print "body { font-size:76%;}" : /*UserAgent says its a Mac*/ > print "body { font-size:100%;} "; /*PC*/ > You know you can't trust the User Agent string, right? We've be

Re: [css-d] Consistent Cross platform font size

2006-11-15 Thread Felix Miata
On 2006/11/15 14:52 (GMT-1000) david apparently typed: > Christian Heilmann wrote: >> On 2006/11/15 11:49 (GMT-1000) wrote: >>> Better still - stop specifying font sizes and design your pages to >>> accommodate visitor preferences? Just because someone uses a PC doesn't >>> mean you need to incr

Re: [css-d] Consistent Cross platform font size

2006-11-15 Thread david
Christian Heilmann wrote: >> >> How do folks on this list get font sizes to be the same between macs >> >> and pcs ? >> >> >> >> I could use php/javascript to increase the font size by x% when on >> a pc. >> >> Is there a simpler way that uses plain old css ? >> > >> > Yes: http://developer.yahoo.

Re: [css-d] Consistent Cross platform font size

2006-11-15 Thread Graham Anderson
Well, I probably made this way too complicated, but here the solution I came up with by googling a bit. The solution below allows for some variable substitution WITHOUT altering the CSS file. The body's font-size attribute is dynamically written according to the OS as defined in the user ag

Re: [css-d] Consistent Cross platform font size

2006-11-15 Thread Micky Hulse
Bradley Wright wrote: > Otherwise I agree with Christian--YUI does it in a really neat way. I also agree! :D YUI fonts is pretty decent way to handle fonts... Not too complicated. -- Wishlist: Switch: BCC?:

Re: [css-d] Consistent Cross platform font size

2006-11-15 Thread Bradley Wright
Graham Anderson wrote: > I could use php/javascript to increase the font size by x% when on a pc. > Is there a simpler way that uses plain old css ? > Say what? PHP? Pray, tell: unless you're referring to HTML? Otherwise I agree with Christian--YUI does it in a really neat way. Brad ___

Re: [css-d] Consistent Cross platform font size

2006-11-15 Thread Christian Heilmann
> >> How do folks on this list get font sizes to be the same between macs > >> and pcs ? > >> > >> I could use php/javascript to increase the font size by x% when on a pc. > >> Is there a simpler way that uses plain old css ? > > > > Yes: http://developer.yahoo.com/yui/fonts/ > > Better still - sto

Re: [css-d] Consistent Cross platform font size

2006-11-15 Thread Dave Goodchild
Good point - I always leave my font sizes for the body unspecified and then apply percentages to sub-elements. The web is for users. As someone recently pointed out to me, designers tend to have excellent eyesight and subconsciously think everyone can read tiny text. They can't. ___

Re: [css-d] Consistent Cross platform font size

2006-11-15 Thread david
Christian Heilmann wrote: >> How do folks on this list get font sizes to be the same between macs >> and pcs ? >> >> I could use php/javascript to increase the font size by x% when on a pc. >> Is there a simpler way that uses plain old css ? > > Yes: http://developer.yahoo.com/yui/fonts/ Better s

Re: [css-d] Consistent Cross platform font size

2006-11-15 Thread Christian Heilmann
> How do folks on this list get font sizes to be the same between macs > and pcs ? > > I could use php/javascript to increase the font size by x% when on a pc. > Is there a simpler way that uses plain old css ? Yes: http://developer.yahoo.com/yui/fonts/ -- Chris Heilmann Book: http://www.beginni

[css-d] Consistent Cross platform font size

2006-11-15 Thread Graham Anderson
How do folks on this list get font sizes to be the same between macs and pcs ? I could use php/javascript to increase the font size by x% when on a pc. Is there a simpler way that uses plain old css ? many thanks g __ css-d