Click here to Skip to main content
15,867,488 members
Please Sign up or sign in to vote.
5.00/5 (2 votes)
See more:
How do i make my Website cross-Browser compatible
when i am generating dynamic websites with css files these css files are some where missing when i am checking with different browsers and one browsers attribute-properties are different wtih other browser's property for example problem with IE 6,7 and mozilla fire foxetc)
so is there any solution such that the design shoud come perfect in all browsers with equal view by taking Dynamic controls also please tell me if any thing is there,i have followed the W3C standrads but list of standrad is not there
Posted
Comments
Hiren solanki 7-Jan-11 2:13am    
A very good question.

Hi, some tips.
1. Never give height or width in px..unless it is necessary.
2. Never give <table cellpadding="2" ... instead apply padding class from Css.
3. If u are writtnig document.getElementById somewhere in ur Client side fucntion and if u have the <as:Scriptmanager with u then use $get...
i.e instead of document.getElementById("objID"); write $get("objID"); //as $get is browsewr compatible
4. If u have written code to hide < tr > remove that and palce a div in the tr and then show hide that div.. bcoz it does not work in Mozilla.
5. Avoid writing rowspan and colspans.
6. Write the java script function at the end of ur aspx page.
Have a look ate the xhtml standards

refer these links:
http://mvark.blogspot.com/2008/07/how-to-make-web-pages-cross-browser.html

Top 10 Tips:
http://www.elated.com/articles/cross-browser-website-tips/

Browser-Tutorial for knowledege abt screen size& browsers:
http://www.netmechanic.com/products/Browser-Tutorial.shtml

for your scripts refer this:
http://developers.evrsoft.com/articles/designing_for_browser_and_platform_compatibility.shtml

For Old Version browsers i.e IE6 refer this:
http://www.practicalecommerce.com/articles/1000-Web-Design-Tips-Compatibility-with-Older-Browsers

I hope it was useful.
 
Share this answer
 
v3
What kind of answer you are looking for? You posted this yesterday too[^].

I gave you an answer and 'Emilio' corrected/emphasised on few things to be considered.

You are talking of IE6 - lots of bugs/issues and not fully W3C compliant. Version of browser would matter. For now, all recent versions of browsers try to follow W3C standard from compatibility point of view.
 
Share this answer
 
Comments
Member 11157096 22-Sep-16 8:21am    
Have you any idea of cross browser compatible in asp.net in easy way without change css any related to coding

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900