• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 181
  • Last Modified:

alignment of a table to the left.

How do I align a table on the left of the browser without any space left...???
0
amitapotnis
Asked:
amitapotnis
  • 2
1 Solution
 
nettromCommented:
the default alignment of elements is 'left', so all you'd have to do is to remove the margins.  this can be done in several ways.

for IE:

<body leftmargin="0" topmargin="0">

for Netscape:

<body marginwidth="0" marginheight="0">

using CSS:

<body style="margin-left:0;margin-top:0">

the CSS solution only worked ok in IE4, IE5 and Opera as far as I could see.
0
 
andreifCommented:
You can write
<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>
It will work in IExplorer and Netscape :)
0
 
nettromCommented:
yes, of course.  I forgot to say that you can add all three (or the two first ones) together to support both.

all depends on how you like to do it. :)
0
 
itssookCommented:
if you are working witha table then do something like this:

<LEFT>
<TABLE>
-
-
-
-
</TABLE>
</LEFT>

and if that doesn't work then try:

<table align=left>
-
-
-
-
</table>

good luck.
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now