garylee Posted June 13, 2006 Share Posted June 13, 2006 anyone in this forum know the answer for the question below?Question: What are the ways you can deal with x-browser issues? What are the pros and cons of each?thank you,Gary Quote Link to comment https://forums.phpfreaks.com/topic/11924-can-somebody-help-me-with-this-question/ Share on other sites More sharing options...
AndyB Posted June 13, 2006 Share Posted June 13, 2006 Expect cross-browser issues - not every visitor to your site comes equipped with the latest and greatest browser (or your favourite browser).The sane way to deal with so-called cross-browser issues is to write code that complies with W3C standards. It's a trivial exercise to use online validators for html and CSS, and it's not at all difficult to write valid code to start with. 'Cross-browser' issues then become cases of browsers that fail to comply with reasonable standards. I'm not suggesting you expect CSS2 and CSS3 to be supported, but the CSS1 standard is a sensible goal.Once you've eliminated a very large percentage of the cross-browser issues by coding rationally and to a standard, the few true cross-browser issues can be resolved with conditional CSS coding NOT by browser sniffing and using a zillion style sheets. The majority of these issues are where IE does not comply, although there are plenty of cases where IE is 'more compliant' than other mainstream browsers.There are enough CSS-compliance versus browser version tables around to steer you away from trying to make something work that is never going to work :)Needless to say, check your work with more than one browser and at more than one screen resolution. Quote Link to comment https://forums.phpfreaks.com/topic/11924-can-somebody-help-me-with-this-question/#findComment-45291 Share on other sites More sharing options...
phpvolution Posted June 14, 2006 Share Posted June 14, 2006 The main thing I do is code for MSIE and Firefox as that takes care of probably 95% of your visitors. That's frustrating enough to get identical appearance on both browsers, so I wont even bother with AOL, Netscape etc. I'm sure they'd have close resemblence on others if you can get the code to work on the big 2.The biggest issue i've found is with <div>'s, it's pushed as the replacement for <table>'s now, but even the big sites still use tables throughout. They seem to display much more consistantantly across the browsers. Quote Link to comment https://forums.phpfreaks.com/topic/11924-can-somebody-help-me-with-this-question/#findComment-45446 Share on other sites More sharing options...
moberemk Posted June 14, 2006 Share Posted June 14, 2006 Actually, Netscape will now look exactly like either Firefox or IE, because it has adopted the Gecko core but added an IE viewing mode.Kinda ironic that netscape has taken on the code from a fork of itself. Quote Link to comment https://forums.phpfreaks.com/topic/11924-can-somebody-help-me-with-this-question/#findComment-45488 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.