alignment of a table to the left.

Posted on 2000-02-17
Last Modified: 2010-04-09
How do I align a table on the left of the browser without any space left...???
Question by:amitapotnis
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Expert Comment

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.

Expert Comment

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

Expert Comment

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. :)

Accepted Solution

itssook earned 50 total points
ID: 2533493
if you are working witha table then do something like this:


and if that doesn't work then try:

<table align=left>

good luck.

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

733 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