Link to home
Start Free TrialLog in
Avatar of brettr
brettr

asked on

Centering content

How can I get content here to center: http://www.cygen.com/oldtimeypb/?

Also, is there a way to get the background to not consume the entire page?  I may want to use another background that shows through on the edges.
Avatar of BlueYonder
BlueYonder

Put everything inside of a table.
<table style="width:100%">
<tr align="center">
<td>
</td>
</tr>
</table>
Rather than adding tables to your site...

1- add this above your "div id=main" (and add a closing tag at the bottom of your HTML)
<div id="wrapper" style="background-image: url('images/background.jpg');margin:0 auto;width:800px;">

Open in new window


2- remove the style settings you have on your <body> tag. (Basically, removing the background image from the body and placing it on the wrapper - that way if you want to use a different page-level background image elsewhere, you can)
change:
<body style="background-image: url(images/background.jpg);width:600px;height:300px;">

Open in new window

to
<body>

Open in new window


If you want to add a height:300px to the "wrapper" div, feel free to do so. ;o)
Avatar of brettr

ASKER

@nap0leon:

Thanks.  Can you check the site now?  Is there a way to center the inner content?
ASKER CERTIFIED SOLUTION
Avatar of nap0leon
nap0leon

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of brettr

ASKER

Nice.  Thanks.