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

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
tom8521
Forum Commoner
Posts: 25
Joined: Thu May 13, 2010 6:24 am

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

Post 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?
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

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

Post 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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
greyhoundcode
Forum Regular
Posts: 613
Joined: Mon Feb 11, 2008 4:22 am

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

Post 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.
Post Reply