View Full Version : How to center...?
10-26-2009, 01:17 AM
Can anyone explain how to center this page:
I have set the body to having text-align: center and that still didn't do it.
10-26-2009, 01:33 AM
thanks seco, but the problem is still here. I want the whole page centered but still have the text aligned to left.
Trying the code above:
10-26-2009, 01:44 AM
To center something it has to have a width. Then margin: auto; has something to work with.
Give #wrap a width of 1000px and your margin:0 auto; will center it (you style #wrap twice and the other one has margin: 0; so you will need to delete that)
10-26-2009, 02:05 AM
Awesome, thank you.
10-26-2009, 06:36 AM
You can also try using <center></center> tags.
The <center> tag should be just after the <body> tag & </center> should be just before </body> tag.
That makes whole page to be aligned centered.
10-26-2009, 08:06 AM
The center tag has been depricated.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.