Re: centering text

by "Stephanie Thrasher" <steph(at)omsoft.com>

 Date:  Wed, 25 Jun 2003 20:12:20 -0700
 To:  <hwg-techniques(at)hwg.org>
 References:  nuvox apc
  todo: View Thread, Original
Hi Adrian,

Possibly you've figured this out or gotten the answer by now, but I
haven't seen it posted, so I'll tell you what I noticed:

If you remove the td width from each cell with text, then the text
will be centered in both IE and Netscape.

With the td width specified, IE seems to left-align the cell within
the table (which is wider) and to then center the text within that
left-aligned cell.  Netscape on the other hand seems to center the
narrower table cell, so in Netscape the text is centered even with the
width specified.

Stephanie


> Hi,
>
> I have an odd problem, that should have been easy to solve, but now
has me
> stumped!
>
> I have text in a nested table cell, and I want it centered. I've
tried
> setting the align on the cell, using CSS and even using p align.
Nothing
> works. It still sits just to the left of center. Any ideas?
>
>
http://www.e-parl.net/energy/new-section/highlights/highlights-test.htm
>
> I've put some space in the code and comments to make the odd table
easier
> to find.
>
> Thanks!
>
> Adrian Harris
>

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