Discussion in 'Programming' started by Glenn, Jan 31, 2012.
And how do I get things to center up in IE?
How long is a piece of string?
Are you using absolute positioning? (bad)
Your missing my point
Doesnt center in ie.
They each have their own unique quirks.
Which reminds me, does it have a doctype?
Ok, I guess my question is, how do I get it centered in IE?
I know what your question is.
Give it a doctype and WHAT VERSION OF IE!!
it's probably MS IE
p.s. glenn a link to the site is often easiest
It's all versions it seems.
Right now I have it temporarily fixed with a table.
need a link to the page or the whole code. preferably a link
Probably obvious, but had you had a width specified in the CSS for the object you are trying to center? If no specific width is set, it may make the margin attributes a little wonky. Just a suggestion.
Never mind, as I just checked a project I am working on in IE 7, 8, and 9 to find out that I am having the same issue.
I have found in IE that sometimes you have to use text-align:center for the body for it to center.
On your container use: width:960px; margin: 0 auto; text-align:left
Hope that solves your problem.
Funny, this seems like such a common problem, but its never happened to me.
Add a doctype
Add a reset
Keep your code simple and streamlined.
Dont use absolute positioning
And this should never be a problem...
Separate names with a comma.