Kurrel Posted August 22, 2007 Share Posted August 22, 2007 Hey Freaks, I have noticed that even if the first thing I declare is a coloured table, <table bgcolor='RED' width=100% height=100% cellspacing=0 cellpadding=0> that there is white space surrounding it. Is that a meta-table into which code-declared ones get placed, or a tag for the table I've declared that I'm not setting? I've looked through the tags on PHP help but none seems to do the job! Kurrel Quote Link to comment https://forums.phpfreaks.com/topic/66111-solved-removing-the-outermost-border-on-webpages/ Share on other sites More sharing options...
php_tom Posted August 22, 2007 Share Posted August 22, 2007 Try: <table bgcolor='RED' width=100% height=100% cellspacing=0 cellpadding=0 style='margin:0px; padding:0px;'> Quote Link to comment https://forums.phpfreaks.com/topic/66111-solved-removing-the-outermost-border-on-webpages/#findComment-330866 Share on other sites More sharing options...
Kurrel Posted August 22, 2007 Author Share Posted August 22, 2007 Still has the white bit around it. Even if the sum total of my php is <?PHP print("<table width=100% height=100% bgcolor='RED' cellspacing=0 cellpadding=0 style='margin:0px; padding:0px;'>"); print("<tr><td>"); print("TEST"); print("</td></tr>"); print("</table>"); ?> ! Quote Link to comment https://forums.phpfreaks.com/topic/66111-solved-removing-the-outermost-border-on-webpages/#findComment-330871 Share on other sites More sharing options...
php_tom Posted August 22, 2007 Share Posted August 22, 2007 This works: <html> <body style='margin:0px; padding:0px;'> <table width=100% height=100% bgcolor='RED' cellspacing=0 cellpadding=0 style='margin:0px; padding:0px;'> <tr><td> TEST </td></tr> </table> </body> </html> But note that you could also do it more simply, like so: <html> <body bgcolor='RED'> TEST </body> </html> Hope that helps. Quote Link to comment https://forums.phpfreaks.com/topic/66111-solved-removing-the-outermost-border-on-webpages/#findComment-330877 Share on other sites More sharing options...
Kurrel Posted August 22, 2007 Author Share Posted August 22, 2007 Utterly perfect! The first part did the trick, the only real reason I made the bg red was to make sure myself that I wasn't imagining it was there. Thanks a bunch. Quote Link to comment https://forums.phpfreaks.com/topic/66111-solved-removing-the-outermost-border-on-webpages/#findComment-330883 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.