i am aware that there is another thread that has to do with aligning a div.....yet i could find an answer to the specific problem...so i am asking again...
i have a parent div (pageBody) and in it another div and some text...
div#pageBody {
width: 620px;
}
what i need to do is align the parent div horizontally in the middle....well adding text-align: center appears to do the job on IE but due to a bug...
on Mozilla the parent div stays always on the left...
Originally posted by cssrules
[B]hi!
what i need to do is align the parent div horizontally in the middle....well adding text-align: center appears to do the job on IE but due to a bug...
on Mozilla the parent div stays always on the left...
Originally posted by cssrules
how can it be done without the text-align? i have read it is due to a bug that actually causes the content of the page to be centered....
Yes, you take advantage of that IE bug to fix the other IE bug (it ignores the mergin auto).
Bookmarks