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 been
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:
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 still - stop
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 - stop specifying font
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
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: http://snipurl.com/vrs9
Switch: http://browsehappy.com/
BCC?: http://snipurl.com/w6f8
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
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
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 increase or