Cross Browser
Apr 7, 2010

7 Tips to make your website Cross Browser Compatible

Cross-browser means web application works with all versions of all browsers. To claim cross-browser compatibility, the website is nowadays expected to support browsers such as Mozilla Firefox,Google Chrome, Opera, and Safari in addition to Internet Explorer and Netscape. Here are the basic tips to make your website cross browser compatible.

1. Define Valid Doctype:
Your doctype tells the browser what rules you’ll be using in your code. If you don’t specify, the browser has to guess, and different browsers will guess differently. When you design in “strict mode,” Internet Explorer 6 and above will show behavior much closer to that of Firefox, Safari and other modern browsers.


Otherwise, Internet Explorer runs in a “quirks mode” where it attempts to emulate the behavior of older browsers.

2. CSS Reset:
By default, Different browsers behave as per their default css rules. You need to explicitly define css to make same behavior for different browsers. I like Eric’s CSS reset:

3. Conditional Comments:
Try to use conditional comments instead of CSS hacks.
With conditional comments you can link to separate style sheets for different browsers.

<link type="text/css" href="style.css" />
<!--[If IE]>
<link type="text/css" href="IEHacks.css" />
<!--[if !IE]>
<link type="text/css" href="NonIEHacks.css" />

4. Try to use javascript library like jQuery, YahooUI, MooTools, Dojo abstract away the differences in the DOM, AJAX and JavaScript.

5. You can use Css Frameworks like BluePrint, 960 Grid. These are mostly cross browser compatible.
See following to know which css framework is suitable for you.

6. Validate:
The W3C Validation Service validates multiple versions of XHTML and HTML, outputting many useful errors and warnings to help users create a perfect website.
W3C Validator:
W3C Css Validator:

7. Testing:
I would suggest you to start with firefox and then move to IE. Use Firebug, a firefox addon and IE Developer Toolbar for IE to set layout. To test website on different browser, there are some online and offline utilities like

See following to get more app for testing cross browser compatibility:

If you are designer you must know difference between different browsers. For this, See followings:

If you use other ways to make your site cross browser compatible, please leave a comment and share it. If you liked this article don’t forget to digg or share it.


  1. Hi..
    actually im facing a problem currently ongoing project my website run very well in IE but GOOGLE CHROME UI not proper working.and my website made by since please tell me the error check in page

  2. Hey thanks for sharing the tips. In today’s fast paced marketing world if your website is not browser’s compatible than you run the risk of losing significant amount of traffic. A website with cross browser compatibility is a must. Great post.

  3. These 7 tips are very helpful to me. And with the help of this, you make website cross-browser compatible. In the browser, I am basically used in my email account. If I want any help with this, I am going to the Gmail support phone number.

  4. There is always a compatible browser which we like to access all the time we open the internet. Thus the websites which we access must be supported to all the browsers or the specific browser which we are using. Thus the article recommends us the details about the way to make our browser compatible to support all types of websites.

  5. hi sir ,
    i am suresh kumar gupta fraser level java developer ,
    some times facing cross browser problem , when ever test the report on browse then some browser not a comfort ,so plz i will request how can solve these problem ,can you help me ?plz….

  6. When some one searches for his necessary thing, therefore he/she wants to be available that in detail, so
    that thing is maintained over here.

  7. In my form select option drop down having with white background color on google chrome those i don’t want. i want transparent background for all browser. Is there browser compatibility issues. can you give me solution?

Leave a Reply

Your email address will not be published. Required fields are marked *