|
<div style="margin:0 auto; text-align:center;">
You really don't want the text align part, but IE is stupid. You can use a paragraph, or a series of them, justified left, full, or whatever. It's even easier if you use an ID:
<div id="someDiv">
...
</div>
<style>
#someDiv { margin:0 auto; text-align:center; }
#someDiv p { text-align:left; }
</style>
Maybe you do want the text inside your div centered? Unfortunately, IE doesn't understand margin:0 auto, and uses text alignment on images. You could sniff the user agent string to figure out which browser a person is using and direct them to a different style sheet, but ... that's a lot of pain.
|