Re: 100% table width with pixel-width-specific columns?

by "rudy limeback" <r937(at)interlog.com>

 Date:  Sun, 26 Mar 2000 20:07:18 -0500
 To:  "David Clapper" <dclapper(at)clioassociates.com>,
<hwg-techniques(at)hwg.org>
  todo: View Thread, Original
>http://www.clioassociates.com/pinnacle/default.htm and
>http://www.clioassociates.com/pinnacle/crimescene.htm)


hi david

here's my hack for liquid tables

inside the "fixed" columns, put a transparent gif that is one pixel high
and as wide as the *minimum* width of that column

then specify an outrageous width for the liquid column, and constrain the
table with width=100%

the really wide column forces the width=100% table to squeeze all the
columns, but the "fixed" ones won't collapse any narrower than their
minimum widths because of the gifs

result -- only the liquid column changes as you resize the window

  <table width=100%>
  <tr>
  <td><img src=1pix_clr.gif height=1 width=120><br>
  first column content</td>
  <td><img src=1pix_clr.gif height=1 width=150><br>
  second column content</td>
  <td width=1200>
  third column content</td>
  </tr></table>


_____________
rudy limeback
http://r937.com/
http://evolt.org/

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA