ilikephp Posted January 13, 2008 Share Posted January 13, 2008 Hello, when I am creating my website, i am using tables, and inside the tables I have backgroud. I have: footer, menu and index. I put: no borders and cell space ="0" when I save my file using the .php extension the pictures are not collapsed, I have a white gap between cells, and when I save it using the .html extension, everything is going fine and pictures in menu and footer are collapsed. What should I do please!! code: <body> <table width="95%" height="22" align="CENTER" cellpadding="0" cellspacing="0"> <tr valign="TOP"> <td WIDTH="2480" Align="right" valign="top" valigh="TOP" > <br> <img src="images/web-salib_01.jpg" width="1884" height="1591" alt=""> <td width="596" align="left" valign="TOP"> <br> <?php include "menu.php";?> </TR></TABLE> <?PHP include "footer.php";?> </BODY> Quote Link to comment https://forums.phpfreaks.com/topic/85845-solved-collapse-cells-inside-the-table/ Share on other sites More sharing options...
tinker Posted January 13, 2008 Share Posted January 13, 2008 for starters your not closing your td tags e.g. </td> <tr><td> </td><td> </td></tr> and what do you mean collapsed? Quote Link to comment https://forums.phpfreaks.com/topic/85845-solved-collapse-cells-inside-the-table/#findComment-438181 Share on other sites More sharing options...
ilikephp Posted January 13, 2008 Author Share Posted January 13, 2008 I mean that there should be no space between cells. when the pictures are linked toghether using the footer and menu.php I have a white space. Quote Link to comment https://forums.phpfreaks.com/topic/85845-solved-collapse-cells-inside-the-table/#findComment-438185 Share on other sites More sharing options...
tinker Posted January 13, 2008 Share Posted January 13, 2008 I can't remember and i need to nip off, but try border=0 within the image tag??? (it could be link wrapping img, not here, but what im thinking of) valigh="TOP", should be valign.... i'll have another proper go in a bit, unless anyone else can see what? can you put align=center in table tag try running through w3c html check (esp since this is html not php) what's in menu.php Quote Link to comment https://forums.phpfreaks.com/topic/85845-solved-collapse-cells-inside-the-table/#findComment-438191 Share on other sites More sharing options...
ilikephp Posted January 13, 2008 Author Share Posted January 13, 2008 hello, inside menu: <td> <img src="images/web-salib_02.jpg" width="596" height="1591" alt=""></td> </tr> </body> inside footer.php: <body> <img src="images/web-salib_03.jpg" width="2480" height="340" alt=""> </body> Quote Link to comment https://forums.phpfreaks.com/topic/85845-solved-collapse-cells-inside-the-table/#findComment-438204 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.