tables that fill entire page

  • Thread starter Thread starter Lisa A
  • Start date Start date
L

Lisa A

I'd like to know how to create a table, at the top that fills the whole
page. Even at 100%, there is a small space around the table.
thanks,
Lisa a
 
Lisa said:
I'd like to know how to create a table, at the top that fills the
whole page. Even at 100%, there is a small space around the table.
thanks,
Lisa a

I have a feeling this is something to do with margins, padding and borders

Try this CSS
body {margin:0; padding:0;}
table {margin:0; padding:0;border:none;}
 
Also you can try this (in addition to Trevor's advice)

body
{ margin-left:0; margin-right:0; margin-top:0; and margin-bottom:0}

and/or <body leftmargin=0 topmargin=0 rightmargin=0 bottommargin=0
marginheight=0 marginwidth=0> to cater for older browsers.
 
Or the easy way is to use * {margin:0; padding:0;}

The "*" sets all margins and padding in all elements to a default of zero.

-------------------------------------------------------------------------
 
Back
Top