July 6, 201115 yr On one of the websites I'm creating I noticed an exciting new development. On my work pc which has IE7: the home page displays fine. On my work pc with Firefox: The page is a mess, text on top each other. On my home pc which has IE8: I have to change a few CSS values to make it display correctly. On my home pc with Firefox: Displays fine. I haven't tried Safari, Chrome, etc - too scared So the first question, what am I doing wrong? Perhaps my CSS needs reworking. Is it a good idea to have several style sheets for different browsers? I'm sure I've seen some pages that reference different sheets depending on browser. So many questions this week! Webtastic!
July 6, 201115 yr in general you're only really to need an extra tweaking CSS for IE7. Rarely do you get differences between the others but, of course, that depends on the complexities of your page. It's also a good idea to validate your code as that can often throw up differences between browsers that aren't really CSS issues.
July 6, 201115 yr On my work pc which has IE7: the home page displays fine. On my work pc with Firefox: The page is a mess, text on top each other. Always code and test in Firefox first (or safari or Chrome or Opera) and then, after validating, set conditional comment(s) http://www.javascriptkit.com/howto/cc2.shtml for all IE or just individually for versions of IE, if IE still has problems.
Create an account or sign in to comment