Solved: docking a table at the top of a window

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

lightnb

Thread Starter
Joined
Jun 16, 2002
Messages
786
I want to remove any blank space between the top of the browser window and the top of the table... how can i do this?

thanks,

nick
 
Joined
Apr 14, 2001
Messages
2,382
have you tried aligning the table to top
td valign="top"

or

<table width="100%" border="0">
<tr>
<td valign="top"><table width="100%" border="0">
<tr>
<td>text</td>
</tr>
</table></td>
</tr>
</table>
 

TechGuy

Mike
Administrator
Joined
Feb 12, 1999
Messages
15,040
If it's at the very top of a page, you'll want to change the body tag to include something like:

HTML:
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
Note that most browsers don't use all of those, they're required for things to look correct on some older browsers.
 

lightnb

Thread Starter
Joined
Jun 16, 2002
Messages
786
Thanks, that worked.

Is there a way to remove the table border from just the top of the table?

thanks,

nick
 
Joined
Apr 30, 2005
Messages
3,012
lightnb said:
Thanks, that worked.

Is there a way to remove the table border from just the top of the table?

thanks,

nick
<table style="border-top:0;">

Putting style="border-top:0;" in your table tag should do it
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top