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.
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.
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)
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:
If you want to add a height:300px to the "wrapper" div, feel free to do so. ;o)
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;">
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;">
to<body>
If you want to add a height:300px to the "wrapper" div, feel free to do so. ;o)
ASKER
@nap0leon:
Thanks. Can you check the site now? Is there a way to center the inner content?
Thanks. Can you check the site now? Is there a way to center the inner content?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Nice. Thanks.
<table style="width:100%">
<tr align="center">
<td>
</td>
</tr>
</table>