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 width question 1

Status
Not open for further replies.

4x4uk

Technical User
Apr 30, 2002
381
GB
I have page with the body tag as follows

<body scroll=&quot;auto&quot;>

and a table with the width set to 100% as follows

<table bgcolor=&quot;#EAEAEA&quot; cellpadding=&quot;0&quot; cellspacing=&quot;1&quot; Border=&quot;0&quot; width=&quot;100%&quot;>
<tr valign=&quot;top&quot;>
<td background=&quot;celback.gif&quot; height=&quot;25px&quot; ><b>&nbsp;::&nbsp;Page Title</b></td>
</tr></table>

Although the table width is set to 100% and scrolling is off unless required, the table stops before the edge of the page (about the thickness of the scrollbar if it was visible).
If I set <body scroll=&quot;none&quot;> the table stretches to the end of the page, but then users will have a viewing problem unless their browser is maximised.
Does anyone have any ideas how to get round this problem
thanks
Ian It's not a lie if you believe it!

| |
 
put this in your body tag

leftmargin=&quot;0&quot; topmargin=&quot;0&quot; rightmargin=&quot;0&quot; bottommargin=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top