lawandorder Posted April 15, 2007 Posted April 15, 2007 Hi all.....yes I have looked all over the forums for an answer to this. The body of my site (www.roguebaby.com) is centered when viewed in mozilla but is left justified when viewed in IE. I am including my index.php code if you can help. Thanks alot - much appreciated <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="763" cellspacing="0" cellpadding="0" align="middle"> <tr><td></td></tr> <tr><td></td></tr> <tr> <!-- left_navigation //--> <?//php require(DIR_WS_INCLUDES . 'column_left_image.php'); ?> <!-- left_navigation_eof //--> </table> then I have removed the categories and new products stuff - here is the remaining code for the page <table border="0" width="763" cellspacing="0" cellpadding="0" align="middle"><tr> <th rowspan="2" align="left" width="280"><img src="images/indexpageimageleft.png"></th> <td valign="top" align="right"> <img src="images/indexpageimageright.png"></td></tr> <tr> <td valign="top" align="right"> <img src="images/indexpageimageright.png"></td></tr> </table> <?php } ?> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php //echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?//php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <table> <tr><td></td></tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
vasttech Posted April 15, 2007 Posted April 15, 2007 Couple items. 1. There is no value "middle" for the tag "align" - <table border="0" width="763" cellspacing="0" cellpadding="0" align="middle"> 2. I.E. is very particular. When you center just an individual table it does not interpret that as centering on the screen. It interprets it as everything in the table should be centered. If you are looking to center your entire site there are a couple ways to do it, but the best is to download the Center Site contribution. osCommerce Knowledge Base osCommerce Documentation Contributions
Recommended Posts
Archived
This topic is now archived and is closed to further replies.