wjsullivan Posted September 8, 2009 Share Posted September 8, 2009 This is driving me nuts. I've got a table that I want to use to control the layout of a page. Should be fairly straight forward but I'm getting an extra line/space before it displays the included page. For example header.html doesn't sit at the top of the cell properly, there is an extra line there and above left_nav.html. I'm running IE8 is that the issue and if so how do I solve this. echo "<body>"; echo "<table style=\"width: 970px;\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"; echo "<tr><td colspan=\"2\">"; include ('../header.html'); echo "</td></tr><tr><td>"; include ('left_nav.html'); echo "</td><td>"; echo "</td></tr>"; echo "</table>"; echo "</body>"; Quote Link to comment https://forums.phpfreaks.com/topic/173483-spacing-issue/ Share on other sites More sharing options...
sKunKbad Posted September 8, 2009 Share Posted September 8, 2009 Maybe you should show us the output, because there's no way to know what your talking about without seeing the output. Quote Link to comment https://forums.phpfreaks.com/topic/173483-spacing-issue/#findComment-914483 Share on other sites More sharing options...
RussellReal Posted September 8, 2009 Share Posted September 8, 2009 try putting an inside the <td> that doesn't get filled by any values.. and also try specifying bounds.. like width/height to the tds.. because tables aren't exactly mind readers Quote Link to comment https://forums.phpfreaks.com/topic/173483-spacing-issue/#findComment-914484 Share on other sites More sharing options...
wjsullivan Posted September 8, 2009 Author Share Posted September 8, 2009 OK I think I figured something out with this... It appears that MS Expression Web was inserting a 'bom' character. I built a new file from scratch in textpad with a new name and got a bunch of funny characters displayed. When I looked it up it was a bom character becuase of UTF-8 vs ANSI encoding. Now my problem is how to get the default reset in Expression as I can't find ANSI in their option list and everytime I save something in Expression it saves it as UTF-8 Quote Link to comment https://forums.phpfreaks.com/topic/173483-spacing-issue/#findComment-914489 Share on other sites More sharing options...
RussellReal Posted September 8, 2009 Share Posted September 8, 2009 earlier today I Was working with a table.. and messing with colspan and rowspan in ff works great but in IE8 it seems to NOT work very well.. sadly I had to use a second table inside of a td to get it to function properly.. hope this extra bit of information helps any Quote Link to comment https://forums.phpfreaks.com/topic/173483-spacing-issue/#findComment-914512 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.