[thelist] right align spaces in tables

Marlene Bruce marlene.bruce at cdgsolutions.com
Thu Jun 7 11:11:34 CDT 2001


Hi all,

If you have a moment, please take a look at the following code (viewing in
IE):

<table border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td align="right" width="110">Foobar Foobar Foooobar</td>
    <td><img src="spacer.gif" width="15" height="1"></td>
    <td>Lorem ipsum</td>
  </tr>
</table>

When viewing the right-aligned text in the left column (it should wrap)...

Win: the text right aligns *without* a space after the second Foobar

Mac: the text right aligns *with* a space after the second Foobar

The only way I've ever found around this problem is to replace the second
space with a <br>. However, I would like the text to wrap naturally without
having to put in a hard break, and have it all right align smoothly. Anyone
know any other ways around this problem?

Thanks in advance,
Marlene




More information about the thelist mailing list