CSS – Browser Differences

Most problems with modern CSS layout techniques have their origin in the way different browsers implement CSS. One useful tool to deal with these differences is Dean Edwards’ IE7 JavaScript library, which makes MSIE behave like a standards-compliant browser. This will solve a lot of other issues as well.

A common practice for dealing with cross-browser difficulties, especially with IE differences, is to include an IE-specific stylesheet only for those viewing the site from an IE browser. The following code illustrates:

<!--[if lte IE 8]><link rel="stylesheet">

Note that it should be placed AFTER all the other stylesheet statements in the <head></head> area.

Like this content? Why not share it?
Share on FacebookTweet about this on TwitterShare on LinkedInBuffer this pagePin on PinterestShare on Redditshare on TumblrShare on StumbleUpon
There Are No Comments
Click to Add the First »