how to size to 800px and center

Started by lsd_se, July 19, 2005, 01:50:34 AM

Previous topic - Next topic

lsd_se

HI

I am using the Daze Blue template, and I would lie to center the forum at a fixed width of 800px.

Fixing the width is easy enough, I've done that through the CSS (can also be done via a <div> tag in index.template.php

How can I now center this 800px forum?  I can't seem to get this part figured out

Thanks!  :)

PopLife

enter <center> right after the <body> tag, and </center> before the </body> tag :)


lsd_se

Quote from: giba_choo on July 19, 2005, 07:41:46 AM
enter <center> right after the <body> tag, and </center> before the </body> tag :)



man, I have tried everthing......

<div style="width: 800px;" align="center">
<table> tags
in the CSS

and your simplistic answer works!  I guess sometimes we have to stop and break things down to the simplist...thanks man.

vicez

Quote from: lsd_se on July 19, 2005, 12:11:58 PM
Quote from: giba_choo on July 19, 2005, 07:41:46 AM
enter <center> right after the <body> tag, and </center> before the </body> tag :)



man, I have tried everthing......

<div style="width: 800px;" align="center">
<table> tags
in the CSS

and your simplistic answer works!  I guess sometimes we have to stop and break things down to the simplist...thanks man.

Im not sure, but i think you should have had it like this: <div style="width:800px; margin:auto" ....> ,to have it centered.
My SMF powered Forum http://blah.xshaped.com [nofollow]
How-To Blog http://blog.xshaped.com [nofollow]

lsd_se

Quote from: vicez on July 19, 2005, 05:40:54 PM


Im not sure, but i think you should have had it like this: <div style="width:800px; margin:auto" ....> ,to have it centered.

oh cool, that works too, a little cleaner as well.  i'll make that change, thanks!

Advertisement: