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
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
PS - I know tables are evil. This code was autogenerated by GWT, with
the exception of the styles, which I control.
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
> 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.
> 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
> 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?
With the information provided, text does not "overlap" but is limited within the width specified for both tables.
> 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
> 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?
> 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?
Put white-space: nowrap on the container, and then the two tables will
stay side by side even if it means overflowing the container.