Re: [PHP] CSS / PHP / Javascript

2006-11-16 Thread Myron Turner
You can use a browser sniffer, where they've done all the work for you, and then link in the appropriate stylesheet using document.write(). I don't have personal experience with the IE conditionals, but I would be concerned that they'd get you into a bit of a box when it comes to recognizing o

Re: [PHP] CSS / PHP / Javascript

2006-11-15 Thread Jochem Maas
hmmm, this reply turned into something that resembles a rant about halfway thru... still ... maybe it's helpful in some way. Ed Lazor wrote: > I'm reading a book on CSS and how you can define different style sheets > for different visitors. I'm wondering how you guys do it. The book > recommend

Re: [PHP] CSS / PHP / Javascript

2006-11-15 Thread Dave Goodchild
Good responses here - I tend to use MS conditional comments as I only resort to hacks when there (seems) to be no other way, and although conditional comments are proprietary they are ignored as comments by other browsers and are hence pretty harmless. Yes, for example Opera identifies itself as

Re: [PHP] CSS / PHP / Javascript

2006-11-14 Thread Paul Novitski
At 11/14/2006 08:00 PM, Ed Lazor wrote: I'm reading a book on CSS and how you can define different style sheets for different visitors. I'm wondering how you guys do it. The book recommends using Javascript functions for identifying the user's browser and matching them with the corresponding sty

Re: [PHP] CSS / PHP / Javascript

2006-11-14 Thread Larry Garfield
As a footnote, do NOT then generate different CSS for each browser. Simply generate different tags in the header to point to style.css or style-broken-ie.css. Those should both be static, ordinary files so that you get all of the browser's caching magic free of charge. On Tuesday 14 November

RE: [PHP] CSS / PHP / Javascript

2006-11-14 Thread zoticaic
I guess the $_SERVER predefined variable can be used determining the platform and browser/user-agent and loading the CSS of choice. http://www.php.net/manual/en/reserved.variables.php Enjoy! Jervin > -Original Message- > From: Ed Lazor [mailto:[EMAIL PROTECTED] > Sent: Wednesday, Novemb