Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
|
To center things I usually wrap everything to be centered center in a div and then add css like the following:
div#center {width:720px; margin:0 auto}
That will center everthing horizontlly on the page. I've never actually tried to center things vertically, but I think if you add the height and then just have margin: auto instead of margin:0 auto it would work. I think I usually also add position:relative to the div, though I don't think it's necessary. I think I'm also doing other things with it requiring some kind of positioning, but it's something to try if it's not working.
By the way the template resource looks pretty good. Thanks for the link.
Last edited by vangogh; 02-27-2006 at 02:55 AM..
|