tables that fill entire page

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
 
T

Trevor L.

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;}
 
A

Andrew Murray

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.
 
W

Windsun

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.

-------------------------------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top