KI114 Posted December 4, 2008 Share Posted December 4, 2008 I am making an eBay layout for a friend but one of the cells doesn't seem to be stretching. The cell is the one with layout_09.jpg as the background. Heres how it looks like at the moment: http://ki114.phpnet.us/ebay/layout.html And heres the code: <html> <head> <title>layout</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <!-- ImageReady Slices (layout.psd) --> <table id="Table_01" width="780" height="700" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="5" width="780" height="172"> <img src="images/layout_01.jpg" width="780" height="172" alt=""></td> </tr> <tr> <td colspan="5" width="780" height="4"> <img src="images/layout_02.jpg" width="780" height="4" alt=""></td> </tr> <tr> <td rowspan="2" width="34" height="471"> <img src="images/layout_03.jpg" width="34" height="471" alt=""></td> <td width="102" height="439"> <img src="images/layout_04.jpg" width="102" height="439" alt=""></td> <td rowspan="2" width="35" height="471"> <img src="images/layout_05.jpg" width="35" height="471" alt=""></td> <td rowspan="3" background="images/layout_06.jpg" width="562" height="478"> </br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br>m </td> <td rowspan="3" background="images/layout_07.jpg" width="47" height="100%"> </td> </tr> <tr> <td width="102" height="32"> <img src="images/layout_08.jpg" width="102" height="32" alt=""></td> </tr> <tr> <td colspan="3" background="images/layout_09.jpg" width="171" height="100%"> </td> </tr> <tr> <td colspan="5" width="780" height="64"> <img src="images/layout_10.jpg" width="780" height="46" alt=""></td> </tr> </table> <!-- End ImageReady Slices --> </body> </html> Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/135549-solved-table-not-stretching/ Share on other sites More sharing options...
adx Posted December 5, 2008 Share Posted December 5, 2008 You should run this through the W3C validator as I think you're missing a couple of tags. At least my Dreamweaver was not a fan of this markup. You should also probably add a Doctype for XHTML. Quote Link to comment https://forums.phpfreaks.com/topic/135549-solved-table-not-stretching/#findComment-706463 Share on other sites More sharing options...
haku Posted December 5, 2008 Share Posted December 5, 2008 The problem is the lack of a doctype. Validators and browsers alike don't like this. It will cause problems. Quote Link to comment https://forums.phpfreaks.com/topic/135549-solved-table-not-stretching/#findComment-706525 Share on other sites More sharing options...
KI114 Posted December 5, 2008 Author Share Posted December 5, 2008 I added a doctype but didn't change how it fitted together. However, I changed the slices and it worked perfectly. Quote Link to comment https://forums.phpfreaks.com/topic/135549-solved-table-not-stretching/#findComment-707189 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.