Re: centering table

by "Jami Moore" <jami(at)jamisniche.com>

 Date:  Fri, 20 Apr 2001 08:19:02 -0500
 To:  "HWG Basics" <hwg-basics(at)hwg.org>
 References:  bkrweb bkrweb2
  todo: View Thread, Original
Kathie,

I played with your table this morning. Tried everything I could think of to
center that table, but nothing seemed to work. Until..... I added
align="center" in your beginning div tag. Worked perfectly. <grin>

<DIV class=center align="center">

Jami
http://www.jamisniche.com/

----- Original Message -----
From: "bkrWeb Services" <bkrweb(at)bkrweb.com>
To: <thewolves(at)bigfoot.com>
Cc: <hwg-basics(at)hwg.org>
Sent: Thursday, April 19, 2001 11:26 PM
Subject: Re: centering table


> At 09:16 PM 4/19/01 -0700, Larry Coats wrote:
>
>
> >bkrWeb Services wrote:
> >
> > > I have what I consider an odd situation.  I have a page at
> > > www.bkrweb.com/progress/cits/index.html which uses a table for layout.
In
> > > order to center this table I have enclosed it in a <.div> tag using
> > > class="center" where .center has been defined as text--align: center.
It
> > > works in IE and NS4.7, but not in Opera 5.  I have attempted to
duplicate
> > > this arrangement on another site.  This one is at
> > > www.strongholdcenter.org/index2.html .  This one does not center in
> > > NS4.7.  Any ideas why?  I have actually removed the <.div> and
replaced it
> > > with align="center" inside the <.table> tag and it still didn't
> > > work.  Please don't tell me to not worry about the small number of
people
> > > who use NS -- the staff at the conference center ALL use it.
> >
> >I haven't looked at the first one, but I did take a look at the 2nd one
in
> >Netscape.
> >
> >Seems Netscape gets a little confused now and then by what should be
perfectly
> >valid alignment requests. The very first row in the table has
class="center"
> >in the <.td> tag. If you take it out, the table centers. You can put the
> >class="center" into the <.tr> tag and it still works fine, so that seems
like
> >the fix this table. One of those little mysteries of Netscape. Shrug.
> >
> >Larry Coats
>
> That center is in the <.td> tag to center the Stronghold logo at the top
of
> the page.  If I take it out, then the logo is off to the side.  I may just
> have to decide which situation I'd rather live with.   My choice of course
> would be for all browser to render all pages the way I want them to!
>
> Thanks.
>
> Kathie
>

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA