Jump to content

[SOLVED] Removing the outermost border on webpages


Recommended Posts

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

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>");
?>

!

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.