Topic: Align Center

New help!! I need to know where exactly do I change the code, to set the alignment of my forum.
I've set the width to 780px, but need to align:center.

Re: Align Center

In the body tag, put

position: relative;
text-align: center;

and in the punwrap part, put this:

text-align: left;

Um...That should work. Works for me and it got around IE and Firefox barriers.

Re: Align Center

Alternatively, you can do use the following code on the class: #punwrap

{margin: 0px auto 0px auto}

That code will always center any DIV element you want it to.. Change the 0px part to anything you want (it just adjusts the distance from the top of the page.

4

Re: Align Center

If you want it to work cross browser the way to do it is a combination of the above

BODY {margin: 0; padding: 0; text-align: center}

#punwrap {width: 780px; margin: 0 auto; text-align: left}