Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: lsd_se on July 19, 2005, 01:50:34 AM

Title: how to size to 800px and center
Post by: lsd_se on July 19, 2005, 01:50:34 AM
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!  :)
Title: Re: how to size to 800px and center
Post by: PopLife on July 19, 2005, 07:41:46 AM
enter <center> right after the <body> tag, and </center> before the </body> tag :)

Title: Re: how to size to 800px and center
Post by: 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.
Title: Re: how to size to 800px and center
Post by: vicez on July 19, 2005, 05:40:54 PM
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.
Title: Re: how to size to 800px and center
Post by: lsd_se on July 20, 2005, 12:02:43 AM
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!