• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 185
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

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