Log in

View Full Version : How do I put tables to the top?



Meti
14-08-2008, 12:26 PM
Hey,
I'm currently trying to code in tables (fun :P).
Anyways, I want to put a table to the top.
I don't know how.
I've tried adding divs to the tables, and to:

margin-top: 0px;

But it doesn't seem to work.

Anyone know how?

Decode
14-08-2008, 01:20 PM
If you mean you want the table to be right at the top of the page, with no margin use this-



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

Blob
14-08-2008, 08:13 PM
<style type="text/css">
body
{
margin: 0;
}
</style>

Meti
15-08-2008, 09:19 AM
<style type="text/css">
body
{
margin: 0;
}
</style>
Wrong code :P
It has to be 0px?

Anyways, i'm coding the layout in DIV's instead ;)

AlexOC
15-08-2008, 09:21 AM
yes and margin: 0px would set it to left, right, top and bottom

for only top use


body { margin-top: 0px; }

Want to hide these adverts? Register an account for free!