I have been aligning my divs to the center using "margin-left:auto;" and "margin-right:auto;", but then I found that this doesn't work in internet explorer 6. Does anyone know how to overcome this problem?
You don't have to use text-align. Just add the DOCTYPE to the top of the document as srobona said. Without it ie will render the page in quirk mode, which throws everything in chaos.