Wofen
09-07-2005, 05:05 PM
Hey everyone,
I am trying to set up a page using divs and CSS like the good old table days. Basicly as I said in the title, I want to center a div thats 800px wide, on a page, so that one 800x600 it will take up on all the page, but on 1024x800 it will have 2 nice little columns on the side. The code I want to emulate is this.
<center>
<table>
<tr>
<td> This is in the center of the page</td>
</tr>
</table>
Now, sadly, <center> <div> dont work :(.
Now, I googled it, and everywhere I looked just said to use CSS to center a Div, insted of the <Center> command. its just, no where does it tell you what CSS command to use.Now I might be missing something simple, but its starting to get annoying. Can anyone help me out here, so I can stay away from the tables.
Wofen
I am trying to set up a page using divs and CSS like the good old table days. Basicly as I said in the title, I want to center a div thats 800px wide, on a page, so that one 800x600 it will take up on all the page, but on 1024x800 it will have 2 nice little columns on the side. The code I want to emulate is this.
<center>
<table>
<tr>
<td> This is in the center of the page</td>
</tr>
</table>
Now, sadly, <center> <div> dont work :(.
Now, I googled it, and everywhere I looked just said to use CSS to center a Div, insted of the <Center> command. its just, no where does it tell you what CSS command to use.Now I might be missing something simple, but its starting to get annoying. Can anyone help me out here, so I can stay away from the tables.
Wofen