marcus76 Posted January 30, 2007 Share Posted January 30, 2007 Hi, Can anyone shed some light on how I insert an HTML table in 'column_left.php' ? when i do this it pushes the product_listing down under the 'categories_left'.php. I'd like them to sit side by side - something to do with a table having to sit on a new line perhaps? Thanks Marcus Link to comment Share on other sites More sharing options...
Velveeta Posted January 30, 2007 Share Posted January 30, 2007 Hi, Can anyone shed some light on how I insert an HTML table in 'column_left.php' ? when i do this it pushes the product_listing down under the 'categories_left'.php. I'd like them to sit side by side - something to do with a table having to sit on a new line perhaps? Thanks Marcus Can we see an example of your column_left file and a link to the site where this is happening? Richard. Richard Lindsey Link to comment Share on other sites More sharing options...
marcus76 Posted January 30, 2007 Author Share Posted January 30, 2007 hi Richard, thanks for your reply. The site is under development at the moment and not live so not possible. I'm not available either to take a screenshot of the display. I had a look in the index.php file, i'm wondering if the box needs to be defined here? <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> Kind of makes sense, as the column_left.php file (if contained the table) would surely sit under the 1st table (as coded in the index.php) you cant have a table alongside a table in html can you? Cheers Marc Link to comment Share on other sites More sharing options...
bill110 Posted January 30, 2007 Share Posted January 30, 2007 In your column_left.php do this after the last ?> <tr><td>Your new contents </td></tr>[code] My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai Link to comment Share on other sites More sharing options...
Velveeta Posted January 30, 2007 Share Posted January 30, 2007 If I'm reading the above post correctly, rather than having another table inserted into the column_left file, you want to have it alongside the column_left td element, is that right? In that case, you could edit the column_left file and create 2 new tables with in, similar to this: <tr> <td valign="top"><table width="50%" border="0"> <?php here is where you would insert your new stuff that you want alongside the column_left, this would appear on the right side of it, put this block after the next set of entries if you want it on the right side of the block ?> </table></td> <td valign="top"><table width="50%" border="0"> <php this is where you would put all of the includes for the actual column left ?> </table></td> </tr> Richard. Richard Lindsey Link to comment Share on other sites More sharing options...
marcus76 Posted January 30, 2007 Author Share Posted January 30, 2007 ok, Bill - that sounds like whats required to me. So just to confirm. I want a table with several rows in my column left. so far to date when i attempt to do this i find the 'product_listing.php' (if viewing a category) pushed aligned left but under the categories box (column left). I need the layout to stay as it is but just allow a table to be created within the column left. I'll try the following tonight: In your column_left.php do this after the last ?> <tr><td>Your new contents </td></tr>[code] Thanks Link to comment Share on other sites More sharing options...
bill110 Posted January 30, 2007 Share Posted January 30, 2007 Yes that should do it. If you look at each of the boxes in the column_left you see that each starts and ends the same way. Therefor if you do the same to the end of the column_left.php it should align the same. That is how I added SSL logo, PayPal logo, etc.. My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.