Cross-Browser Compatibility Issues
You should know that your web page may render and look fine in one browser but may look different (or even broken) in another browser. These problems if they occurs are called “cross-browser compatibility” issues. This is because different browser are written by different developers and there are differences in which they interpret your HTML code. In addition, there are browser bugs where the browser does not interpret the HTML as specified in the W3C specs.
Browser Bugs
In the past, Internet Explorer have been notoriously known for their browser bugs. For example, Internet Explorer 6.0 has the three pixel jog bug, the peekaboo bug, Guillotine bug, and a few more. Internet Explorer 5.5 has an mis-interpretation of the Box Model. There are workaround for these bugs, which you can find more information on in the provided links. Many of the IE issues revolves around the IE concept of “hasLayout” and many IE bugs can be resolved by cleverly making HTML elements “have layout” or using the Holly Hack.
Cross-Browser Workarounds and Hacks
Another way to fix cross-browser issue to is apply code that targets only a specific browser and not affect the other browsers. These are known as CSS Filters.
The star-html hack used to be a well-known hack to feed CSS rules only to IE 6 browsers and below and not affect other browser. But this hack does not work on IE7 or above (reference). Although you can use conditional comments to simulate it.
Because there are drawbacks with the use of these hacks, the recommended approach to applying code that you want to target only the Internet Explorer browsers and not affect any other browser is to use IE conditional comments.
How to Check Different Browser
We recommend that you have the latest copy of Firefox and Internet Explorer on your development machine so that you can test your pages in both browsers as you develop your pages. As of this writing, these are the two most popular browser.
Test often. Code a little bit of HTML and then test in both browsers. Code some more HTML and test. And so on. That way, at the point when you get two different renderings from the Firefox and IE, you will know which piece of code was the cause.
In addition to Firefox and Internet Explorer, you should also test to see how your pages render in Opera and Safari, for Windows and for Macs, as well as different versions of Internet Explorer.
Running Different Versions of Browsers on Same Machine
Unfortunately, Windows does not let you install two different version of Internet Explorer on the same machine. Although you might want to try some hacked stand alone IE versions that will make that happen (more details here), we find that it is no substitute for the real browser. The hacked versions may not handle IE conditional comments, PNG transparency, and other complex workarounds as accurately in the native version.
Using Firefox profiles, you can run different versions of Firefox with different installed plugins. You can even run Firefox 2 and Firefox 3 side-by-side on the same machine as described in Cozi Tech Blog.
Browser Screen Captures
Fortunately, there are “browser screen capture” services that will take your URL of your page and will run it through various real browsers (not simulations) and will show you a screen capture of what you page looks like in those browsers. The most well known is BrowserCam.com. But there are also others listed here (some of which are free).
Which Browser to Use First
When differences in rendering occurs in different browsers, you would start the fix by working with the most compliant browser first. Most compliant means the one that most closely follows the W3C HTML spec. At the time of this writing, it would be Firefox. And then apply the necessary workaround or hacks to make the other browser look the same. This method is also advocated by Douglas Bowman in his talk about tableless design.





Super Cheap Yankee Candles…
[...]we like to honor other sites on the web, even if they aren’t related to us, by linking to them. Below are some sites worth checking out[...]…
Recent Blogroll Additions……
[...]usually posts some very interesting stuff like this. If you’re new to this site[...]……
Superb website…
[...]always a big fan of linking to bloggers that I love but don’t get a lot of link love from[...]……
article marketing…
[...]while the sites we link to below are completely unrelated to ours, we think they are worth a read, so have a look[...]…
Blogs ou should be reading…
[...]Here is a Great Blog You Might Find Interesting that we Encourage You[...]……
Websites we think you should visit…
[...]although websites we backlink to below are considerably not related to ours, we feel they are actually worth a go through, so have a look[...]……
Gaming Blog Recommends Your Site…
[...]I would rеally like tо complete а blog but.. I am nоt sure which kind of blogs be gettіng thе traffic? What kind of blogs can уоu surf? I mostlу surf photo blogs and fashion blogs. Just getting…
TV Lamps…
The Truth behind Television Replacement Lamps….
Another Website Recommends Your Page…
[...]check below, a few totally unrelated websites tо ours, however, there're mоst trustworthy sources that wе use[...]…
Wholesale Yankee Candles…
[...]just below, are some totally unrelated sites to ours, however, they are definitely worth checking out[...]…
Sites we Like……
[...] Every once in a while we choose blogs that we read. Listed below are the latest sites that we choose [...]……
Great Clips Coupons…
[...]right here are a few url links to internet websites which I link to because we feel these are worthwhile checking out[...]…
Check this out…
[...] that is the end of this article. Here you’ll find some sites that we think you’ll appreciate, just click the links over[...]……
Cheap Yankee Candles…
[...]here are some links to sites that we link to because we think they are worth visiting[...]…
Not really that funny…
While I was reading the story, a seagull just fought with my pet cricket!…
Superb website Mentions Your Website…
[...]always an enormous fan of linking to bloggers that wе love but don’t have а great deal оf link love from[...]…
You should check this out…
[...] Wonderful story, reckoned we could combine a few unrelated data, nevertheless really worth taking a look, whoa did one learn about Mid East has got more problerms as well [...]……
Latest news from all around the world, you need to see this !…
[...]blow are some sites that we think it will be helpful and fun to read[...]…
wheelchar ramp…
Nice information in this site. You must in point of fact test it out….
Utmost…
This could be the maximum blog post….
Recent Blogroll Additions……
[...]usually posts some very interesting stuff like this. If you’re new to this site[...]……
buy damansara house…
[...]you will find information that’s relevant to you if you want to buy damansara house[...]…
Blogs ou should be reading…
[...]Here is a Great Blog You Might Find Interesting that we Encourage You[...]……
Awesome website…
[...]the time to read or visit the content or sites we have linked to below the[...]……
Great website…
[...]we like to honor many other internet sites on the web, even if they aren’t linked to us, by linking to them. Under are some webpages worth checking out[...]……
Angry Birds Online…
[...]right here are a handful of listings to sites that we connect to because we feel they’re worth browsing[...]…
Best Basketball Drills…
[...]while the sites we link to below are completely unrelated to ours, we think they are worth a read, so have a look[...]…
Go no further…
Please don’t make me to review that post ever again have mercy….
Just Browsing…
While I was surfing today I noticed a excellent post concerning…
outer banks nc rentals…
[...]below you’ll find the link to some sites that we think you should visit[...]…
hotels…
[...]just below, are some totally unrelated sites to ours, however, they are definitely worth checking out[...]…
Yahoo results…
While browsing Yahoo I found this page in the results and I didn’t think it fit…
New ideas ? Great Ideas ? Best Ideas ?…
[...]below you’ll find the link to some sites that we think you should visit[...]…
Could have been worse…
Would have rather let my girlfriend pluck my mustache….
Recent Blogroll Additions…
[...]always a big fan of linking to bloggers that I love but don’t get a lot of link love from[...]…
Websites you should visit…
[...]below you’ll find the link to some sites that we think you should visit[...]……
Blogs ou should be reading…
[...]Here is a Great Blog You Might Find Interesting that we Encourage You[...]……
[...] this article: Cross-Browser Compatibility Issues | Source and Code Related Posts:List of Cross-Browser CSS Properties Cross-Browser CSS Properties List After I [...]
[...] the article here: Cross-Browser Compatibility Issues | Source and Code Related Posts:Cross-browser | Source and Code Example of cross-browser coding. To follow this [...]