HighDots Forums  

Create liquid window between 2 tables?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Create liquid window between 2 tables? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Seddon webforumsuser@macromedia.com
 
Posts: n/a

Default Create liquid window between 2 tables? - 07-18-2003 , 06:27 AM






The page contains 2 tables. One at the top and one at the bottom. The tables are measured in pixels. Top one is 20 high and the bottom one is 59 high. I want to create an area between these 2 tables that would contain text etc and would need to scroll down if overflow occurs. This area would resize when the browser window is resized.

How would I do this?




Reply With Quote
  #2  
Old   
Dan Vendel *GOF*
 
Posts: n/a

Default Re: Create liquid window between 2 tables? - 07-18-2003 , 06:35 AM






"Seddon" webforumsuser (AT) macromedia (DOT) com wrote:
Quote:
The page contains 2 tables. One at the top and one at the bottom. The
tables are measured in pixels. Top one is 20 high and the bottom one is
59 high. I want to create an area between these 2 tables that would
contain text etc and would need to scroll down if overflow occurs. This
area would resize when the browser window is resized.
Quote:
You're not saying if you want the widths of the top and bottom tables
expand when window is resized. Assuming you want them fixed width (e.g.
700px) while the "main content" expands, you can use this table:

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<table width="700" border="0" cellspacing="0" cellpadding="0"
align="center" height="20">
<tr>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top">&nbsp;</td>
</tr>
<tr>
<td valign="top">
<table width="700" border="0" cellspacing="0" cellpadding="0"
align="center" height="59">
<tr>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>

Please note that the height of top and bottom tables will not work if
you don't put some content in them, e.g. a shim or an image that's
exactly 20 resp. 59 px high.

If you want the top and bottom tables to expand with the browser width,
too, yopu can actually remove them and place the content straight in the
upper and lower cells.

HTH
--
Dan Vendel - *GOF*
http://www.vendel.info
Contact me directly by clicking here:
http://contact.vendel.info
Formmail tutorial:
http://www.vendel.info/tut/formmail.html
Nested table demonstration:
http://www.vendel.info/tabletut/



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.