[ Updated threads · New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 1
  • 1
Include different classes for different browsers
guitarmantraDate: Thursday, 2009-06-04, 7:23 AM | Message # 1
Group: Administrators
Messages: 220
Awards: 3
Reputation: 2
Status: Offline
Thanks to Microsoft and Internet Explorer, the bigger problem for every front-end developper is definitely cross-browser compatibility. Even if Internet Explorer introduced conditional tags to include styles only for IE, it can be good to be able to deal with other browsers as well.

This code works with the JQuery framework, so of course make sure you have it installed on your website.
Paste the following code in the head part of your html document or in a separate .js file:


Now you can preprend your styles with .msie, .mozilla, .opera, .safari or .other depending on the targeted browser.
Attachments: 6361583.jpg (16.1 Kb)
  • Page 1 of 1
  • 1