p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Dreamweaver (all versions) (http://p2p.wrox.com/forumdisplay.php?f=58)
-   -   Fixed size table (http://p2p.wrox.com/showthread.php?t=17562)

amc August 28th, 2004 11:38 AM

Fixed size table
 
I would like to have tables which cells would have a FIXED size in pixels (specially the width). My goal is that, after testing, I decide the width for every column and the height for every row, thus preventing DW to automatically stretch or enchance them

I know this is possible, but I am failing to achieve that

Might someone help, please?

thanks

thanks
antonio

Imar August 28th, 2004 11:57 AM

Ignoring the fact that a fixed table width design isn't too useful in most circumstances (it's probably better to use a liquid design), you can use Css to do this:

<table>
<tr>
  <td style="width:100px;">1</td>
  <td style="width:50px;">2</td>
</tr>
</table>

This should fix the width of your columns to 100 and 50px respectively.

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.

amc August 28th, 2004 12:09 PM

Thanks.

Assuming that fix-size cells is not an optimum practice, I should turn my question to: how to FORCE all rows but one (the rightmost one) to be FIXED size?

Or even better, how to understand the random behaviour of DW when manually widening a column (instead of just chaning the border I am moving, other borders move too, causing a mess



thanks
antonio

Imar August 29th, 2004 05:32 AM

Hi antonio,

To make a flexible layout / design, you should use a "liquid design". Search this forum or Google for the term "liquid design" and you'll find some useful examples, including:

http://p2p.wrox.com/topic.asp?TOPIC_...=liquid,design

http://p2p.wrox.com/topic.asp?TOPIC_...50&whichpage=1

You may also want to check out: http://www.alistapart.com/ and search for the same terms.

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.

amc August 29th, 2004 07:03 AM

thanks. I 'll do


thanks
antonio


All times are GMT -4. The time now is 01:20 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.