December 17, 2006
You got PHP in my CSS! You got CSS in my PHP!
While a purist might keep faithfully hitting the refresh button on all the major browsers, tweaking his CSS until he turns #1f5acf in the face (or his startup budget runs out, whichever comes first), your time is worth more than that. A quick-and-easy solution for the rest of us is to serve up a different set of styles depending on the user agent. Many thanks to Gary White for his excellent browser-detection class.
I know this site has some nasty rendering bugs in Opera and IE6 (maybe Safari also, I haven’t tested it yet). Now that I’ve got the power of phpStyles on my side, I’ll see about getting those taken care of this week.

By email






















life reliastar insurance york ing company company ing new reliastar insurance life
Comment by york life company ing reliastar insurance — January 8, 2009 @ 12:58 pm