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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing table indentation

Status
Not open for further replies.

spook007

Programmer
May 22, 2002
259
US
When ever you create a table, it is automatically indented inside the web page. Is there any way you can have the table borders flush against the page borders instead of being indented. If so what command do I have to set on which tag?
 
<Div STYLE=&quot;Left: 0px&quot;>
<Table>
blah
blah
blah
</Table>
</Div>
 
That didn't quite work, here's how:

<Table STYLE=&quot;position:absolute;left: 0px&quot;>
<tr>
<td>This should be the same distance from the top
as normal but right next to the left side of the browser.
To make the top be even, put top:0px; right after the left:0px; </td>
</TR>
</Table>

One thing to remember when using that, is that you must &quot;pad&quot; the remaining page with enough <br>'s to counter the height of the table.

Using margin:0 px; instead of position:absolute;left: 0px has worked in the past. I don't know why it won't right now. but you can experiment with that, too.

Rick It's a pleasure to know that I've helped you. If I have,
please click the link below to let me know. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top