Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 28th, 2004, 11:38 AM
amc amc is offline
Authorized User
 
Join Date: Feb 2004
Location: Barcelona, , Spain.
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
Reply With Quote
  #2 (permalink)  
Old August 28th, 2004, 11:57 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 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.
Reply With Quote
  #3 (permalink)  
Old August 28th, 2004, 12:09 PM
amc amc is offline
Authorized User
 
Join Date: Feb 2004
Location: Barcelona, , Spain.
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
Reply With Quote
  #4 (permalink)  
Old August 29th, 2004, 05:32 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 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.
Reply With Quote
  #5 (permalink)  
Old August 29th, 2004, 07:03 AM
amc amc is offline
Authorized User
 
Join Date: Feb 2004
Location: Barcelona, , Spain.
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks. I 'll do


thanks
antonio
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:19 AM.


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