Firefox Code Problem

Hello,

I have an image in a DIV that is supposed to be in middle of page.

In Chrome/IE, it is in the right spot.

In Firefox, it is off to the right.

Why would Firefox have this issue?

If you post the CSS and HTML I may be able to help you out. Are you using “text-align: center;” and “margin: 0 auto;” on the container div?

Hi,

We need to see the css and html otherwise we are just guessing.:slight_smile:

Do you have a full doctype?

Have you cleared your floats (i.e. is the image snagging on a float previous to it).

Is the image display:block or display:inline? If its display:block then margin:auto should center it. If it’s display:inline then text-align:center on the parent should center it.

Or it could be a number of other things :slight_smile: