 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|

August 28th, 2004, 11:38 AM
|
Authorized User
|
|
Join Date: Feb 2004
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
__________________
thanks
antonio
|

August 28th, 2004, 11:57 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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.
|

August 28th, 2004, 12:09 PM
|
Authorized User
|
|
Join Date: Feb 2004
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

August 29th, 2004, 05:32 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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.
|

August 29th, 2004, 07:03 AM
|
Authorized User
|
|
Join Date: Feb 2004
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
thanks. I 'll do
thanks
antonio
|
|
 |