Page 1 of 1

Not specifically PHP but, how do you resolve cross browser..

Posted: Fri Jul 30, 2010 9:41 am
by tom8521
Not specifically PHP but, how do you resolve cross browser issues. I have a website but of course, as expected, it looks completely different on Firefox to IE. How do other web developers usually get around this?

Is it as simple as using different style sheets for different browsers?

Re: Not specifically PHP but, how do you resolve cross brows

Posted: Fri Jul 30, 2010 11:22 am
by pickle
Code to standards. Pick a standard (HTML 4.01, XHTML 1.0, XHTML 1.1 Strict, etc) and make sure your code complies with it - the W3C provides validators you can check with.

From there, check it in all your browsers and tweak as necessary - checking that it always sticks to the standard. Depending on how far back you're going - ya, you might need browser-specific stylesheets or conditional comments.

Re: Not specifically PHP but, how do you resolve cross brows

Posted: Fri Jul 30, 2010 11:59 am
by greyhoundcode
pickle wrote:From there, check it in all your browsers and tweak as necessary
A good resource to assist with this process is browsershots. I dare say similar websites also exist.