PDA

View Full Version : Aligning a table


ionsurge
09-18-2002, 05:56 PM
Hi all,

I am wondering how I should go about aligning a table at the very top of the page, so there is no gap between the highest scrollable region, and the lowest scrollable region.

I am not using frames, and do not wish to use frames.

I have tried the code valign=top, or something like that, I do not remember it off my head.

I have attached the .html file, but due to the restrictions, I have changed the extension to a .txt, alter it to .html, and you will see what I mean.

Thank you in advance.


Ionsurge.

(it may want a picture, if it does just ignore it)

Roy Sinclair
09-18-2002, 07:06 PM
Try putting topmargin="0" into the missing <body> tag or (preferably) use a style sheet to define the same:

<style type="text/css">
body { top-margin: 0px; }
</style>

ionsurge
09-18-2002, 07:15 PM
Thanx for your help!

I appreciate it very much!

adios
09-18-2002, 07:42 PM
body { margin-top: 0px; }

http://www.w3schools.com/css/pr_margin-top.asp

Roy Sinclair
09-18-2002, 07:47 PM
Originally posted by adios
body { margin-top: 0px; }

http://www.w3schools.com/css/pr_margin-top.asp

Ooops :o