View Full Version : How to center...?
bfinke
Oct 26th, 2009, 01:17 AM
Can anyone explain how to center this page:
http://ucmsigeps.com/index.php
I have set the body to having text-align: center and that still didn't do it.
THANKS!
seco
Oct 26th, 2009, 01:19 AM
#wrap {
margin:0px auto;
}
bfinke
Oct 26th, 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:
http://ucmsigeps.com/index.php
Excavator
Oct 26th, 2009, 01:44 AM
Hello bfinke,
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)
bfinke
Oct 26th, 2009, 02:05 AM
Awesome, thank you.
technica
Oct 26th, 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.
Excavator
Oct 26th, 2009, 08:06 AM
The center tag has been depricated.
http://www.w3schools.com/tags/tag_center.asp
Powered by vBulletin® Version 4.2.2 Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.