How to make pages look the same on various browsers (Firefox VS IE)

To many ads? Support ODJT and see no ads!

shanefrom302

DJ Extraordinaire
Sep 28, 2008
948
86
43
Delaware
www.chodecircus.com
Hey guys I noticed that my some of my web pages which have tables are not properly showing up in Internet Explorer, but look exactly the way I want them to look in Firefox. Is there an easy solution to this?
 
How are you writing your code? Since IE is dominant it is wise to code for it and then do fixes for the other browsers. Also if you have IE8 it has a feature called compatibility mode that usually fixes odd looking pages.
 
Is there an easy solution to this?

In a nut shell...no.

There has always been, and probably always will be, rendering differences between the various browsers. IE is actually the least compliant. Many of the differences require some hack or trick to make it work across all browsers. Or you simply accept the differences and work with them. For instance my site acts differently between IE and Firefox, because of rendering issues. I coded the sites to recognize which browser is being used and follow the appropriate CSS file to render for that browser.

Go to this page as an example;
www.yourweddingentertainment.com/aboutus.html

In Internet Explorer, the entire page scrolls down with the menu sliding along to follow. And the pictures will fade from one to another.

In Firefox, only the center panel scrolls up and down (the way I wanted it to act). And the pictures snap from one to another (not the way I want it).

Website design is very much about compromise when it comes to cross browser rendering.
 
How are you writing your code? Since IE is dominant it is wise to code for it and then do fixes for the other browsers. Also if you have IE8 it has a feature called compatibility mode that usually fixes odd looking pages.

Actually, it is wise to write to the browser that is most compliant to CSS standards and then do fixes for the other. IE is historically the least compliant.

The IE8 user would have to switch to compatibility mode on their end, I imagine most would simply assume it's a problem with the site and move on.
 
Simply remove the !doctype text from the body. This usually works for me.

If not, change it to the following:

<!doctype html public "-//w3c//dtd html 4.01 transitional//en" "http://www.w3.org/tr/html4/loose.dtd">