View Single Post
Old 02-20-2008, 03:54 AM   #8
Aarlev
Web Designer
 
Aarlev's Avatar
 
Join Date: Jan 2008
Location: London
Posts: 325
Default

Quote:
Originally Posted by fumblies View Post
Yes, I think that is the problem. But I have no idea why it becomes right-aligned in IE though. How do I resolve this, anybody?
IE needs text-align:center; on the body to center align the page. And margin:0 auto; on your main container element for Firefox etc. E.g

CSS:

body {
text-align:center;

}

#container {
margin: 0auto;

}

HTML:

<div id="container">

The rest of your site code here.

</div>


That should do the trick. If you have any problems feel free to PM me and I will try to help you.
__________________
//PORTFOLIO\\
Aarlev is offline   Reply With Quote