This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes how to correctly align two tables? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to correctly align two tables?" Watch "how to correctly align two tables?" New topic
Author

how to correctly align two tables?

rick collette
Ranch Hand

Joined: Mar 22, 2002
Posts: 208
Hi,
If I have two tables. One table contains
a textbox, dropdowns, etc, for search; another table will
display search results.
I want to display these two tables cleanly, I want search table
occupy 20% of browser space, and results table occupy 80% of browser
space. How can I do it?
If I do something like the following:
<tr>
<td>
<table width="20%">
search criteria here...
</table>
</td>
<td>
<table width="80%">
results here...
</table>
</td>
The first table will occupy normal browser space, second table occupies
the same space as the first does, this makes browser space doubled and ugly.
thanks,
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
Try this:


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
I recommend that you use CSS for a two column layout.
This should help: http://realworldstyle.com/2col.html
Eric
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to correctly align two tables?