Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Table location needs to be at top of page

Status
Not open for further replies.

lmarshall

MIS
Jun 11, 2002
108
US
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=&quot;5&quot;, 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
 
<BODY MARGINHEIGHT=&quot;0&quot;>

There's always a better way...
 
Code:
<BODY LEFTMARGIN=&quot;0&quot; TOPMARGIN=&quot;0 MARGINHEIGHT=&quot;0&quot; MARGINWIDTH=&quot;0&quot;>
<TABLE CELLPADDING=&quot;0&quot; CELLSPACING=&quot;0&quot;>
Body tag followed immediately by the table tag (no html in between) using the margin & cell attribs as shown works fine for me

Hope this helps [smile]

 
Since you're using CSS:

<style type=&quot;text/css&quot;>
TABLE{
background-repeat: no-repeat;
background-position:left top;
}
</STYLE>

Just add

body {margin: 0;}

between the <style> tags





- É -
 
Has everyone forgot about valing?

<table valing=&quot;top&quot;>
</table>

it's that easy.

Hope you read this.
 
Well it would help if I could spell, valign=&quot;top&quot; not valing.

Oops
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top