|
|
Registered User Currently Offline
|
Posts: 5
Join Date: Oct 2005
|
Just wanted to pass this along for anyone having issues with tables or overall aligning their SEO-board. I didn't see this posted (at least doing it this way below).
Using this method aligns everything to whatever width you prefer using <div> inclusion in the styles.
1) Insert the below code into your stylesheet for SEO board:
/* TABLE WIDTH BEGIN */
body {
text-align:center; /* for IE */
}
div#container {
text-align:left; /* reset text alignment */
width:748px; /* or a percentage, or whatever */
margin:0 auto; /* for the rest */
}
/* TABLE WIDTH END */
NOTES: You can set the width to whatever you like, i.e. the example above uses "748px" or you can use 80% or 800px, etc...
2) Now, in your mainheader.htm file, include this line where you see <body> (replace it):
<body>
<div id="container">
...your layout will fall into this location...
3) Now, in your mainfooter.htm file, insert this to close the above div container:
</div>
</body>
NOTES: You can call the "container" whatever you want, like "wrapper" or "tablespan", etc., just as you don't conflict with other style names.
Let me know if I've left anything out. The above code should work properly within Firefox/Opera, IE, and Netscape.
Using the above code (or a variation of it) can help you down the road by not having to edit any other files within the "skin" folder as they relate to table widths.
|