Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 18th, 2005, 09:45 PM
John
Guest
 
Posts: n/a
Default Is there a way to make row height equal to column width when you don't know value in advance?

Hi again,

I appreciate all the advice I've gotten so far.

My question this time is whether there's a way to make the row height
equal to the column width when you don't know in advance what you'll be
using.

The content of each cell is text.

Thanks if anyone has any ideas for me. I'm starting to think the answer
is no. I've experimented with cellpadding, but that adds space in all
four directions.

John

  #2  
Old August 26th, 2005, 11:45 AM
Soren Beck
Guest
 
Posts: n/a
Default Re: Is there a way to make row height equal to column width whenyou don't know value in advance?

John wrote:[color=blue]
> Hi again,
>
> I appreciate all the advice I've gotten so far.
>
> My question this time is whether there's a way to make the row height
> equal to the column width when you don't know in advance what you'll be
> using.
>
> The content of each cell is text.
>
> Thanks if anyone has any ideas for me. I'm starting to think the answer
> is no. I've experimented with cellpadding, but that adds space in all
> four directions.
>
> John
>[/color]

Hi John,

There is no easy way as far as I know.

One way I can think of is to use a fixed width font (such as Courier
New) and then count the amount of pixels each letter takes up (in width)
and use that as height (by multiplying by the number of letters).

This solution would require that you use some form of dynamic scripting
language such as php, asp or cgi.

--

Søren Beck
Costa Tropical Internet

http://www.costatropicalinternet.com
 

Bookmarks

Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles