note 2034 deleted from ereg by jmoore

From: Date: Wed, 14 Feb 2001 20:09:48 +0000
Subject: note 2034 deleted from ereg by jmoore
Groups: php.notes 
Request: Send a blank email to php-notes+get-11070@lists.php.net to get a copy of this message
some useful platform-depending style-based html-formatting ;-) $cfgFontFaceText = "Geneva,Arial,Helvetica,sans-serif"; $cfgFontFaceHead = "Verdana,Arial,Helvetica,sans-serif"; if ( eregi("Mac",$HTTP_USER_AGENT) ) { $cfgSmallFontSize = "9px"; $cfgMidFontSize = "12px"; $cfgBigFontSize = "14px"; } elseif ( eregi("Win",$HTTP_USER_AGENT) ) { $cfgSmallFontSize = "11px"; $cfgMidFontSize = "14px"; $cfgBigFontSize = "16px"; } else { $cfgSmallFontSize = "small"; $cfgMidFontSize = "medium"; $cfgBigFontSize = "large"; } echo "<style type="text/css"> <!-- h3 { font-family:$cfgFontFaceHead; font-size:$cfgFontFaceHead; } p,td,br { font-family:$cfgFontFaceText; font-size:$cfgSmallFontSize; } // --> </style>";

« previous php.notes (#11070) next »