Forum Moderators: open

Message Too Old, No Replies

Noobie HTML question

How do I get rid of white surround

         

charliecon

12:08 pm on May 29, 2006 (gmt 0)

10+ Year Member



Hi there, very basic HTML query
how do I fill in the white surround on the periphery of my page, i.e the edges

<table border="0" width="100%" height="10%" cellspacing="0" cellpadding="0">
<td bgcolor=#90EE90>
</td>
</table>

<body>
<table border="0" width="100%" height="100%" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor=#90EE90 width="20%" valign="top">
</td>
<td bgcolor=#EEEEEE width="70%" valign="top">
<br>

</td>
<td bgcolor=#90EE90 width="10%" valign="top">
</td>
</tr>
</table>
<table border="0" width="100%" height="10%" cellspacing="0" cellpadding="0">
<td bgcolor=#90EE90>
</td>
</table>

</BODY></HTML>

Rightz

12:11 pm on May 29, 2006 (gmt 0)

10+ Year Member



<body leftmargin=0 topmargin=0 rightmargin=0 bottommargin=0>

mattglet

12:48 pm on May 29, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0">

Please quote your attributes.

encyclo

1:53 pm on May 29, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is properly done with CSS - the attributes mentioned above have never been valid HTML. You should either add:

body {
margin:0;
padding:0;
}

to your stylesheets, or you can define it inline:

<body [b]style="margin:0;padding:0;"[/b]>

charliecon

2:21 pm on May 29, 2006 (gmt 0)

10+ Year Member



Thanks very much- I tried searching yesterday for the syntax without success.

Thanks again

Rightz

2:25 pm on May 29, 2006 (gmt 0)

10+ Year Member



I've been told ;)