I am trying to get the main table to sit in the centre of the page, it works in IE but not in Firefox. When I preview in Firefox, the table sits on the left of the page. How do I get the table to sit in the middle of the page in Firefox like it does in IE?
Here's the code I have so far:
Obviously I have the relevant head and body tags, I'm just showing you the main table with nested tables here. I am fairly new to coding and have been teaching myself. I also am using a CSS stylesheet, and as far as I can see I don't think I can get the table to align to the centre of the page by using CSS, but if there is a way then I'll be happy to know about it.HTML Code:<!-- Main table --> <table class="main_table" width="800" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td><!-- Header --><table width="800" height="250" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top" align="left"><img src="img/shimmyst_green_header.gif" width="800" height="250" /></td> </tr> </table><!-- END Header --> </td> </tr> <tr> <td><!-- Blog List --><table class="blog_list" width="800" height="30" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> </table><!-- END Blog List --> </td> </tr> <tr> <td><!-- Main Content Body --><table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="200"> </td> <td width="400"> </td> <td width="200"> </td> </tr> </table><!-- ND Main Content Body --> </td> </tr> <tr> <td><!-- Footer --><table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> </table><!-- END Footer --> </td> </tr> </table> <!-- END Main Table -->![]()



Reply With Quote


Bookmarks