This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > August 2004 > Table Width





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Table Width
news@blueyonder.co.uk

2004-08-03, 11:14 pm

Sorry for the silly question I haven't written web pages for a while.

Am I right that when you enter the "td width="50"" it Constrains the table
cell to 50 units?
I find that the size of the table and cells are data dependent which is
causing a major problem. When I use a repeat region, the fields are
appearing un-uniform and dis-jointed.


<table width="178" border="1">
<tr>
<td width="50"><span
class="style1"><%=(PropertyDatabase.Fields.Item("Road").Value)%></span></td>
<td
width="50"><%=(PropertyDatabase.Fields.Item("County").Value)%></td>
<td width="50"><span
class="style1"><%=(PropertyDatabase.Fields.Item("City").Value)%></span></td>
<td width="4"><span
class="style1"><%=(PropertyDatabase.Fields.Item("Bedrooms").Value)%></span><
/td>
<td width="8"><%=(PropertyDatabase.Fields.Item("Post
Code").Value)%></td>
<td width="6"><%=(PropertyDatabase.Fields.Item("Post
Code").Value)%></td>
<td width="5"><span
class="style1"><%=(PropertyDatabase.Fields.Item("Ref
No:").Value)%></span></td>
</tr>
</table>

Thanks in advance for you help

Paul


Paul Whitham TMM

2004-08-03, 11:14 pm

A TD width setting is designed to create the minumum width of the column,
however it is not consistent across browsers. If the content of the column
is wider and there is room to adjust the render will.

--
Regards

Paul Whitham
Macromedia Certified Professional for Dreamweaver MX2004
Valleybiz Internet Design
www.valleybiz.net

Team Macromedia Volunteer for Ultradev/Dreamweaver MX
www.macromedia.com/support/forums/team_macromedia

"news@blueyonder.co.uk" <delete007@blueyonder.co.uk> wrote in message
news:t6WPc.41800$a8.11316@fe2.news.blueyonder.co.uk...
> Sorry for the silly question I haven't written web pages for a while.
>
> Am I right that when you enter the "td width="50"" it Constrains the table
> cell to 50 units?
> I find that the size of the table and cells are data dependent which is
> causing a major problem. When I use a repeat region, the fields are
> appearing un-uniform and dis-jointed.
>
>
> <table width="178" border="1">
> <tr>
> <td width="50"><span
>

class="style1"><%=(PropertyDatabase.Fields.Item("Road").Value)%></span></td>
> <td
> width="50"><%=(PropertyDatabase.Fields.Item("County").Value)%></td>
> <td width="50"><span
>

class="style1"><%=(PropertyDatabase.Fields.Item("City").Value)%></span></td>
> <td width="4"><span
>

class="style1"><%=(PropertyDatabase.Fields.Item("Bedrooms").Value)%></span><
> /td>
> <td width="8"><%=(PropertyDatabase.Fields.Item("Post
> Code").Value)%></td>
> <td width="6"><%=(PropertyDatabase.Fields.Item("Post
> Code").Value)%></td>
> <td width="5"><span
> class="style1"><%=(PropertyDatabase.Fields.Item("Ref
> No:").Value)%></span></td>
> </tr>
> </table>
>
> Thanks in advance for you help
>
> Paul
>
>



news@blueyonder.co.uk

2004-08-04, 7:14 am

Thanks Paul.
I'm viewing the table in "IE 6" and the table cell doesn't meet the required
minimum if the data is smaller than the specified td width="50". And in most
cases the table doesn't meet the minimum width either.

How do I constrain a table to a minimum width, and if possible a maximum in
IE.


Thanks again

Paul
"Paul Whitham TMM" <paul@valleybiz.net> wrote in message
news:cepg9p$sjf$1@forums.macromedia.com...
> A TD width setting is designed to create the minumum width of the column,
> however it is not consistent across browsers. If the content of the column
> is wider and there is room to adjust the render will.
>
> --
> Regards
>
> Paul Whitham
> Macromedia Certified Professional for Dreamweaver MX2004
> Valleybiz Internet Design
> www.valleybiz.net
>
> Team Macromedia Volunteer for Ultradev/Dreamweaver MX
> www.macromedia.com/support/forums/team_macromedia
>
> "news@blueyonder.co.uk" <delete007@blueyonder.co.uk> wrote in message
> news:t6WPc.41800$a8.11316@fe2.news.blueyonder.co.uk...
table[color=darkred]
>

class="style1"><%=(PropertyDatabase.Fields.Item("Road").Value)%></span></td>
>

class="style1"><%=(PropertyDatabase.Fields.Item("City").Value)%></span></td>
>

class="style1"><%=(PropertyDatabase.Fields.Item("Bedrooms").Value)%></span><
>
>



Murray *TMM*

2004-08-04, 12:15 pm

You can't, really. That's why you will most often see "don't even bother
with cell dimensions" here.

Try running through the table tutorials at the DW FAQ link in my sig to get
a handle on tables.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"news@blueyonder.co.uk" <delete007@blueyonder.co.uk> wrote in message
news:ZO0Qc.44994$a8.24957@fe2.news.blueyonder.co.uk...
> Thanks Paul.
> I'm viewing the table in "IE 6" and the table cell doesn't meet the

required
> minimum if the data is smaller than the specified td width="50". And in

most
> cases the table doesn't meet the minimum width either.
>
> How do I constrain a table to a minimum width, and if possible a maximum

in
> IE.
>
>
> Thanks again
>
> Paul
> "Paul Whitham TMM" <paul@valleybiz.net> wrote in message
> news:cepg9p$sjf$1@forums.macromedia.com...
column,[color=darkred]
column[color=darkred]
> table
is[color=darkred]
>

class="style1"><%=(PropertyDatabase.Fields.Item("Road").Value)%></span></td>
>

class="style1"><%=(PropertyDatabase.Fields.Item("City").Value)%></span></td>
>

class="style1"><%=(PropertyDatabase.Fields.Item("Bedrooms").Value)%></span><
>
>



Paul Whitham TMM

2004-08-04, 11:14 pm

You can't really contrain to a maximum or a minimum using the td tags. The
most common way of doing it is to have a 1pixel high row and into each place
a transparent spacer images with the size set to the minimum you want.

--
Regards

Paul Whitham
Macromedia Certified Professional for Dreamweaver MX2004
Valleybiz Internet Design
www.valleybiz.net

Team Macromedia Volunteer for Ultradev/Dreamweaver MX
www.macromedia.com/support/forums/team_macromedia

"news@blueyonder.co.uk" <delete007@blueyonder.co.uk> wrote in message
news:ZO0Qc.44994$a8.24957@fe2.news.blueyonder.co.uk...
> Thanks Paul.
> I'm viewing the table in "IE 6" and the table cell doesn't meet the

required
> minimum if the data is smaller than the specified td width="50". And in

most
> cases the table doesn't meet the minimum width either.
>
> How do I constrain a table to a minimum width, and if possible a maximum

in
> IE.
>
>
> Thanks again
>
> Paul
> "Paul Whitham TMM" <paul@valleybiz.net> wrote in message
> news:cepg9p$sjf$1@forums.macromedia.com...
column,[color=darkred]
column[color=darkred]
> table
is[color=darkred]
>

class="style1"><%=(PropertyDatabase.Fields.Item("Road").Value)%></span></td>
>

class="style1"><%=(PropertyDatabase.Fields.Item("City").Value)%></span></td>
>

class="style1"><%=(PropertyDatabase.Fields.Item("Bedrooms").Value)%></span><
>
>



news@blueyonder.co.uk

2004-08-06, 12:15 pm

Thanks Both for your help. I have taken up suggestions and used spacer,
which work fine.

Thanks again

Paul


"Paul Whitham TMM" <paul@valleybiz.net> wrote in message
news:cero6f$np5$1@forums.macromedia.com...
> You can't really contrain to a maximum or a minimum using the td tags. The
> most common way of doing it is to have a 1pixel high row and into each

place
> a transparent spacer images with the size set to the minimum you want.
>
> --
> Regards
>
> Paul Whitham
> Macromedia Certified Professional for Dreamweaver MX2004
> Valleybiz Internet Design
> www.valleybiz.net
>
> Team Macromedia Volunteer for Ultradev/Dreamweaver MX
> www.macromedia.com/support/forums/team_macromedia
>
> "news@blueyonder.co.uk" <delete007@blueyonder.co.uk> wrote in message
> news:ZO0Qc.44994$a8.24957@fe2.news.blueyonder.co.uk...
> required
> most
> in
> column,
> column
while.[color=darkred]
> is
>

class="style1"><%=(PropertyDatabase.Fields.Item("Road").Value)%></span></td>
>

class="style1"><%=(PropertyDatabase.Fields.Item("City").Value)%></span></td>
>

class="style1"><%=(PropertyDatabase.Fields.Item("Bedrooms").Value)%></span><
>
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews