PDA

View Full Version : Table location needs to be at top of browser


lmarshall
06-12-2003, 03:08 PM
Is there a way to get the table so that it completely at the top of the page. I have the top title bar as one image in a colspan="5", then each of the drop down menu catgories in seperate columns, and the red/white/black background in a new row set as the background image. I would like to get rid of the spacing between the top of the browser and the table. And have the title bar image there instead. I tried making the title bar as the body background with no repeat but the table doesn't line up with it.. even when you use <br> tags at the top. So I put the table in a layer so that I could move it but then the drop down menus were out of place.

If anyone knows how to get rid of the spacing bettwen the top of the browser and the table or have any other ideas that would be great! I would greatly appreciate anyone's input on the subject

The web page is located here:

http://me2003.lindseymarshall.net/IE/index.htm

Spudhead
06-12-2003, 03:32 PM
<style type="text/css">
body{margin:0px; padding:0px;}
</style>

rsci
06-12-2003, 10:29 PM
In the body tag you can put the following that will work for NS and IE.

marginwidth="0" marginheight="0" leftmargin="0" topmargin="0"

pardicity3
06-12-2003, 11:34 PM
Originally posted by rsci
In the body tag you can put the following that will work for NS and IE.

marginwidth="0" marginheight="0" leftmargin="0" topmargin="0"
Those tags are not valid and should no longer be used, despite the fact they work. We've a nice thread going on about this over at the HTML & CSS forum found here: http://www.codingforums.com/showthread.php?s=&threadid=21313

ionsurge
06-13-2003, 01:26 PM
Originally posted by Spudhead
<style type="text/css">
body{margin:0px; padding:0px;}
</style>

Put in "vertical-align : top ;" too, that will make sure everything goes to the top of the page.