Saturday, February 10, 2007

Browser Detection Script

After two days at the WebDirections North conference in Vancouver, I'm learning how to use CSS instead of ugly in-line markup. If you don't know what I'm talking about, it's just the way Web design is done by the pros.

Problem: Each browser seems to interpret CSS differently. So, the CSS experts have come up with various ways to build CSS files that work for multiple browsers.

A different approach: Why not serve browser-specific CSS files based on a browser test? I did a quick search and found this, a PHP Browser Detection script. The script determines what kind of browser and operating system you use, which can then help to create a CSS file that'll actually work.






<< Home

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]