View Full Version : Top Align with Table (Margin 0)
JWGlenn
04-01-2003, 03:31 PM
I have a table that is "housing" ImageReady rollovers, and it is going to be used for the top frame of a site. I have set the page margins all to 0, but there is still space between the top of the page and the table.
Is there a way to add an attribute to the table to get the top of the image flush with the top of the page?
Thanks. :)
URL: http://cwcafe.com/woj/index2.html
Catman
04-01-2003, 03:56 PM
Try using CSS instead of element attributes. Add something like this to the head section in your contained documents:
<style type="text/css">
<--
body {
margin : 0px;
padding : 0px;
border : none;
}
table {
margin : 0px;
}
-->
</style>
JWGlenn
04-01-2003, 04:19 PM
All that seemed to do was push the table further down. :(
justame
04-01-2003, 06:16 PM
jwg...
try just a dding® valign="top" in thisss td tag...
<TD COLSPAN=11>
/me presumes youre posting 'bout the topbannr_01 image???
JWGlenn
04-01-2003, 06:38 PM
Yes, it's the only item in the page (the banner).
The valign tag didn't work either. :(
I'm getting frustrated. *sigh*
JWGlenn
04-01-2003, 07:55 PM
Through someone's help, I was able to find the problem. I had the margins BEFORE the onLoad command, and in order for them to be recognized, they needed to go AFTER the onLoad command.
Thank you to all who took the time to read and reply. :)
Alvin Chooi
04-30-2003, 07:13 AM
Try this
<style type="text/css">
body { margin-left:0;
margin-top:0
}
</style>
Roy Sinclair
04-30-2003, 04:13 PM
Originally posted by JWGlenn
Through someone's help, I was able to find the problem. I had the margins BEFORE the onLoad command, and in order for them to be recognized, they needed to go AFTER the onLoad command.
Thank you to all who took the time to read and reply. :)
The order you had them should have worked fine unless you've also failed to properly quote the attributes <body onload=dothat(); margin=0> instead of the proper <body onload="dothat();" margin="0">.
Proper quotes are NOT optional even if the browser thinks they are. Failure to use them results in lost time hunting down bugs that never should have happened.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.