Wrox Programmer Forums
|
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
 
Old August 28th, 2004, 11:38 AM
amc amc is offline
Authorized User
 
Join Date: Feb 2004
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
 
Old August 28th, 2004, 11:57 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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

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

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.
 
Old August 29th, 2004, 07:03 AM
amc amc is offline
Authorized User
 
Join Date: Feb 2004
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks. I 'll do


thanks
antonio





Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixed table columns darkhalf HTML Code Clinic 1 August 27th, 2008 02:05 AM
To generate fixed size frames in Crystal Report XI infotech BOOK: Professional Crystal Reports for VS.NET 1 May 14th, 2007 09:03 AM
center text (only) in fixed size div, how to do it beetle_jaipur BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 1 April 16th, 2007 01:38 PM
Starting a fixed size browser window Loz Javascript How-To 12 April 18th, 2006 10:43 AM
A fixed size Datagrid pbyrum General .NET 1 July 30th, 2004 09:56 PM





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