Tables - Extra spacing between edge of screen and table (Posted by IanD)

They have: 222 posts

Joined: Sep 1999

When using a table as a navagation bar on the left side of the screen, there is about 1/8 of an inch of blank space between the top and left edge of the screen and the begining of the table (there is the same thing on www.pageresource.com, if you can't visualize what I'm saying). Does anyone know how to fix it? I've seen it where there is no space, but couldn't find any code in the source that seemed to work.

Thanks,
Ian

John Pollock's picture

He has: 628 posts

Joined: Mar 1999

You'll want to add a few attributes to your body tag:

<BODY LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0">

My site leaves the margins on purpose, I didn't like the look with zero margins. Smiling

----------
Page Resource: http://www.pageresource.com
JavaScript City: http://www.javascriptcity.com

They have: 222 posts

Joined: Sep 1999

Thanks John, that worked.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.