Re: Strange problem - centering

by ErthWlkr(at)aol.com

 Date:  Mon, 17 Jul 2000 17:54:05 EDT
 To:  Molly_Brewer(at)brown.edu,
hwg-basics(at)hwg.org
  todo: View Thread, Original
Hi Molly:

You wrote:

>One of the sections (Newest Additions & Online Pubs table) seems off 
>center compared to the rest of the page and I don't understand why or 
>how to fix it.

The two cells in this table are of unequal width which is why the enclosed 
data looks off-center (set your border="2" to see it).  Look at your line 
lengths - they are what determines the cell width.  If it's just a matter of 
aligning the tables/data cells center to center under each other - 

You can:

Set the width="50%" in each <.TD> cell
Also valign="center" in each <.TD> cell  (or valign="top" if you prefer)

Table should look like so (eliminate the "." in there - I only do it to fool 
my mail program):

<.table border="0" cellpadding="20">
<.tr>
<.td width="50%" align="right" valign="center">

<.font face="Verdana, Arial, Helvetica, sans-serif" size="2"><.font 
color="red">
Newest Additions:<./font><.br><.font face="Verdana, Arial, Helvetica, 
sans-serif" size="2"><.font color = "#666666">
Funding Resources<.br><font face="Verdana, Arial, Helvetica, sans-serif" 
size="2"><.font color = "#666666">
Diversity<br><.font face="Verdana, Arial, Helvetica, sans-serif" 
size="2"><.font color = "#666666"> 
Conferences<./td>

<.td width="50%" align="left" valign="center">
<.font face="Verdana, Arial, Helvetica, sans-serif" size="2"><.font color = 
"#666666">
<.a href="pubs/OBOT/"><font color="red">Online Publication<./font><./a><.br>
Methadone Medical Maintenance:<.br>
A Training and Resource Guide<.br>
for Office-based Physicians<.br><./td>

<./tr><./table>

Hope this helps....

- Jeff Kopito

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