Update You can find a more feature rich version of the browser detector in my little PHP toolkit, called Kirby Rafael Lima's CSS Browser Selector in PHP CSS Browser Selector is a very small javascript with just one line php function which empower CSS selectors. It gives you the ability to write specific CSS code for each operating system and each browser. Quoted from Rafael's website Example The b