Jump to content

[SOLVED] Removing the outermost border on webpages


Kurrel

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.