hanklebow76 — 2014-01-27T18:02:50-05:00 — #1
I was just wondering if any of you be kind enough to look at this site and tell me how to auto center this site. I am managing this site but not an uber expert of CSS
Thank you a bunch
deadmix — 2014-01-27T18:30:03-05:00 — #2
open your index page, in the code source, just after the <body class, there is this code for the first table :
<table border="0" cellpadding="0" cellspacing="0" width="1000px">
Replace it with :
<table border="0" cellpadding="0" cellspacing="0" width="1000px" align="center">
ralphm — 2014-01-27T19:27:57-05:00 — #3
Hi hanklebow76. Welcome to the forums.
That's pretty easy to do, but it's worth noting here that table layouts like this are very outdated, and not recommended any more.
That's one option, but it's a bit out of date. Better to use CSS centering here. Ideally, you'd add a class to the table and then target it in a CSS file. But a quick and dirty option is to do this:
<table border="0" cellpadding="0" cellspacing="0" width="1000px" <font color='"#FF0000"'>style="margin: 0 auto;"</font>>
deadmix — 2014-01-28T06:47:50-05:00 — #4
in fact i just gave the simple way to do this as he said he don't know much about CSS.
The website structure is oldies.. use a lot of tables... so that's why i think the solution of align="center" is the simple way to do that!