Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to correctly align two tables?

 
rick collette
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this:
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I recommend that you use CSS for a two column layout.
This should help: http://realworldstyle.com/2col.html
Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic