2 tables horizontally

D

Dylan Parry

Pondering the eternal question of "Hobnobs or Rich Tea?", Tony WONG
finally proclaimed:
apart from 2 frames, is it possible to have 2 tables horizontally? thx.

<table id="table1">
....
</table>
<table id="table2">
....
</table>
<br class="clear">

Then...

#table1 {
width: 50%;
float: left;
}

#table2 {
width: 50%;
}

..clear {
clear: both;
}

In your stylesheet. Tweak the widths as necessary. The break is simply
to cause the rest of the document to flow properly, but probably isn't
needed in this case anyway.
 
N

NullBock

You can do it using CSS, either by using display:inline directive, or
floating one of the tables. Here's a thread with an example of one
table floated next to another:

http://groups.google.com/group/micr...e+html+css&rnum=7&hl=en&#doc_9e28cb03fdbbdcd1

or, if the link breaks,

http://linkfrog.net/dae7

There are plenty of CSS tutorials out there, and it really isn't too
hard to learn.

Hope this helps,

Walter
----
Walter Gildersleeve
Freiburg, Germany

"In science, 'fact' can only mean 'confirmed to such a degree that it
would be perverse to withhold provisional assent.' I suppose that
apples might start to rise tomorrow, but the possibility does not merit
equal time in physics classrooms." -- Stephen Jay Gould

______________________________________________________
http://reluctantexpatriates.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top