Solved

alignment of a table to the left.

Posted on 2000-02-17
4
168 Views
Last Modified: 2010-04-09
How do I align a table on the left of the browser without any space left...???
0
Comment
Question by:amitapotnis
  • 2
4 Comments
 
LVL 7

Expert Comment

by:nettrom
ID: 2531008
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
 
LVL 6

Expert Comment

by:andreif
ID: 2532034
You can write
<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>
It will work in IExplorer and Netscape :)
0
 
LVL 7

Expert Comment

by:nettrom
ID: 2532590
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
 

Accepted Solution

by:
itssook earned 50 total points
ID: 2533493
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Easy responsive table out of existing table 28 60
Porbably easy CSS question about overlapping and offset images 21 36
Else condition 9 23
how to debug htl and js pages 8 39
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question