Re: Table Alignment

by Andrew Turner <turner(at)agate.net>

 Date:  Fri, 12 Dec 1997 09:19:43 -0500 (EST)
 To:  Scott Bowling <scottbff(at)erols.com>
 Cc:  HWG-GRAPHICS(at)hwg.org
 In-Reply-To:  erols
  todo: View Thread, Original
On Fri, 12 Dec 1997, Scott Bowling wrote:

> [Well, this should be discussed on the HTML list but...]
> 
> Earl & Cindy Douglass wrote:
[snip]
> > <CENTER>
> >   <TABLE ALIGN=Center WIDTH="95%"
> > Missing the quotes  again and note the change in type from caps to 
> > more lower case.  While the change in type style is not a problem with 
> > HTML as far as I know, a WYSIWYG editor is not likely to create code 
> > in that manner.
> > 
> Well, the editor thing is a moot issue anyway. The centering problem is
> caused by the WIDTH attribute in the TABLE tag, which is set to 95%. So
> the table is being centered but is almost the full width of the window.
> If you look at the righthand side of the window you can see the edge of
> the table. The table looks left aligned because the content only fills
> the left half of the table. This is much more pronounced at higher
> resolutions, like the 1024x768 that I use.
> 
> Removing the WIDTH attribute will fix the centering problem.
> 
> There are other problems, starting with the missing DOCTYPE declaration
> which must be the first line of a valid HTML document. At least as of
> the HTML 2.0 spec. Including a DOCTYPE and using a validator can help
> catch and correct many errors, but would not catch the otherwise valid
> use of WIDTH="95%" in the TABLE tag.

While this is a problem, I believe that there is more to it.  On my
display (which is 800x600) the table is actually wider then the browser
window.  This implies that the table has an extra field in it somewhere
that is stretching the table as wide as it is.  I took a look at the
source code but could not pinpoint the problem.  All of the ROWSPANs are
hard to keep track of.

-
Andrew Turner

HWG: hwg-graphics mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.