[thelist] http_user_agent

Erik Mattheis gozz at gozz.com
Wed Mar 20 16:34:01 CST 2002


At 6:15 PM -0400 3/20/02, Christopher Joseph wrote:
>I would like to take advantage of CSSs style features but keep the site
>looking relatively the same in non css compliant browsers. Is using a server
>side script like php and outputting html/xhtml based on http_user_agent a
>useful way of achieving this?

If anyone and everyone is going to be able to use the site, someone
is going to eventually see a cached version intended for a different
browser.

Look at your user agents in your log files - I'm quite certain you
don't have to worry about non-CSS browsers ... just about the only
people that use them do so because they don't _want_ to see CSS, etc.

If you're going to do much more than text formatting with CSS, you're
going to want/need to serve different stylesheets to different
browsers, in which case you should document.write() to different
external stylesheets based on the userAgent ... some people like to
use @IMPORT.

--

__________________________________________
- Erik Mattheis

(612) 377 2272
http://goZz.com/

__________________________________________



More information about the thelist mailing list