Solved

alignment of a table to the left.

Posted on 2000-02-17
4
165 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
This article discusses how to create an extensible mechanism for linked drop downs.
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…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

816 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now