spacecrusader — 2011-07-14T23:45:55-04:00 — #1
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?
daviddrees — 2011-07-15T01:21:59-04:00 — #2
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?
paulob — 2011-07-15T02:42:21-04:00 — #3
We need to see the css and html otherwise we are just guessing.:)
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