On Thu, 12 Jan 2012 06:07:21 -0800 (PST), laredotornado wrote:
> Hi,
>
> I'm using the latest version of Firefox and Chrome on Win XP. I want
> to display two tables on the same horizontal plane. However, I'm
> having a problem. Right now I have
>
> <table width="100" style="display: inline-block;">
> ...
> </table>
> <table width="100" style="display: inline-block;">
> ...
> </table>
>
> Right now, the two tables overlap because the text content of the
> first table is bigger than 100 pixels. Without changing the width,
> does anyone know how I can change/add to the styles so that the second
> table will appear to the right of the first table but clear all of the
> first table's contents?
>
> Thanks, - Dave
Jukka offers one strictly css-focussed way; another way might be to add
align="left"
into the left-most table's opening <TABLE ... > tag -- as in this ...
--- [SAMPLE] ---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><TITLE>Table Test</TITLE></HEAD>
<BODY>
<table align="left" width="100"><tr><td> far too much stuff to fit </td>
<td> more<br> stuff </td></tr></table>
<table><tr><td> STUFF </td>
<td> more<br> STUFF </td></tr></table>
</BODY></HTML>
--- [end of SAMPLE] ---
(tested only in Safari, but working there; and valid HTML).
HTH. Cheers, -- tlvp
--
Avant de repondre, jeter la poubelle, SVP.