views:

943

answers:

1

Why do div tags render differently in IE8 and Firefox?

Is there a way to have them rendered the same?

This is a very general question, the reason I ask is I am fighting both browsers when using div tags, some elements are not rendering the same.

+7  A: 

You may benefit from starting off with a reset.css. This generally fixes any differences between multiple browsers. I suggest Meyer's (online at http://meyerweb.com/eric/tools/css/reset/).

Simply download that .css file, and reference it first before any other css rules/files. This assumes that your problem is with the actual browsers, and not with your markup.

Jonathan Sampson
I am going to try this out.
Daniel
I hope it works. We've all been there. It's very frustrating having to deal with all the different issues between IE and FF (not to mention the others).
Jonathan Sampson
If your problems persist, try to skinny-down your page to just the offending markup, and then post it here. Won't take very long for us to weed out the problems together.
Jonathan Sampson