Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Browsers are all different, and the best way to get around those differences is to use a different style sheet for the different browsers.
 

Attachments

  • detect.zip
    2.4 KB · Views: 186
Originally posted by mystixman
Browsers are all different, and the best way to get around those differences is to use a different style sheet for the different browsers.

No, no, no! Browser sniffing is not the way to go.

Design a site that conforms to web standards and you're most of the way there. Besides incompatibilities in older browsers, most current browsers will display a page the same way.

If you absolutely have to, you can hide certain CSS rules from browsers within the file itself.

Make sure to validate your HTML and CSS.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.