473,385 Members | 1,661 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to limit TD's height or text length

I am making two tables side by side. I need talble's each elements to match
table two's. So the <td> in both must have the same heights. However. one
talble's content's length is unknown under dynamic content is made.

I tried to use <td height=xxx> but it does not force the height, but only
set the minimal height.

I want to know if there is a way to limit the height. or even the length of
the content, so if it has 1000 charater long, it will only show the first
100 etc.

Sorry, Iframe can not be used for some special purpose.

The only other thing I can think of is the TEXTAREA whose height is inforced
properly.
Jul 23 '05 #1
7 3269
Make a third table with one row and two cells

put a table in one of the cells of the new table
"nntp" <nn**@aol.com> wrote in message
news:VI*********************@twister01.bloor.is.ne t.cable.rogers.com...
I am making two tables side by side. I need talble's each elements to match
table two's. So the <td> in both must have the same heights. However. one
talble's content's length is unknown under dynamic content is made.

I tried to use <td height=xxx> but it does not force the height, but only
set the minimal height.

I want to know if there is a way to limit the height. or even the length
of
the content, so if it has 1000 charater long, it will only show the first
100 etc.

Sorry, Iframe can not be used for some special purpose.

The only other thing I can think of is the TEXTAREA whose height is
inforced
properly.

Jul 23 '05 #2
It does not work, as one table requires fixed heights. Your method will
always puth both tables in the same heights, not <td> and not even able to
fix the td height.

---------
| |
---------
| |
----------

table one is fixed. I have to let talbe two to match each cell height of
table one.....
Make a third table with one row and two cells

put a table in one of the cells of the new table
"nntp" <nn**@aol.com> wrote in message
news:VI*********************@twister01.bloor.is.ne t.cable.rogers.com...
I am making two tables side by side. I need talble's each elements to match table two's. So the <td> in both must have the same heights. However. one talble's content's length is unknown under dynamic content is made.

I tried to use <td height=xxx> but it does not force the height, but only set the minimal height.

I want to know if there is a way to limit the height. or even the length
of
the content, so if it has 1000 charater long, it will only show the first 100 etc.

Sorry, Iframe can not be used for some special purpose.

The only other thing I can think of is the TEXTAREA whose height is
inforced
properly.


Jul 23 '05 #3
How does the user know they are different heights?

"nntp" <nn**@aol.com> wrote in message
news:aJ********************@twister01.bloor.is.net .cable.rogers.com...
It does not work, as one table requires fixed heights. Your method will
always puth both tables in the same heights, not <td> and not even able to
fix the td height.

---------
| |
---------
| |
----------

table one is fixed. I have to let talbe two to match each cell height of
table one.....
Make a third table with one row and two cells

put a table in one of the cells of the new table
"nntp" <nn**@aol.com> wrote in message
news:VI*********************@twister01.bloor.is.ne t.cable.rogers.com...
>I am making two tables side by side. I need talble's each elements to match > table two's. So the <td> in both must have the same heights. However. one > talble's content's length is unknown under dynamic content is made.
>
> I tried to use <td height=xxx> but it does not force the height, but only > set the minimal height.
>
> I want to know if there is a way to limit the height. or even the
> length
> of
> the content, so if it has 1000 charater long, it will only show the first > 100 etc.
>
> Sorry, Iframe can not be used for some special purpose.
>
> The only other thing I can think of is the TEXTAREA whose height is
> inforced
> properly.
>
>



Jul 23 '05 #4
because in the left table, each cell is 50px high, and for the right table,
some cell is only 2 lines, so only 30px high, some cell has 20 lines, to
make it 200px high. i want to be able to force the height, either by force
the cell to widen, but limit each cell of the rightable to be exact 50px
high.
How does the user know they are different heights?

"nntp" <nn**@aol.com> wrote in message
news:aJ********************@twister01.bloor.is.net .cable.rogers.com...
It does not work, as one table requires fixed heights. Your method will
always puth both tables in the same heights, not <td> and not even able to fix the td height.

---------
| |
---------
| |
----------

table one is fixed. I have to let talbe two to match each cell height of
table one.....
Make a third table with one row and two cells

put a table in one of the cells of the new table
"nntp" <nn**@aol.com> wrote in message
news:VI*********************@twister01.bloor.is.ne t.cable.rogers.com...
>I am making two tables side by side. I need talble's each elements to

match
> table two's. So the <td> in both must have the same heights. However.

one
> talble's content's length is unknown under dynamic content is made.
>
> I tried to use <td height=xxx> but it does not force the height, but

only
> set the minimal height.
>
> I want to know if there is a way to limit the height. or even the
> length
> of
> the content, so if it has 1000 charater long, it will only show the

first
> 100 etc.
>
> Sorry, Iframe can not be used for some special purpose.
>
> The only other thing I can think of is the TEXTAREA whose height is
> inforced
> properly.
>
>



Jul 23 '05 #5
UnPlionkable .
^^^^^^^^^^^^
ROTFL! YMMD!!1

wrote:
[Top post]


<http://jibbering.com/faq/>
PointedEars, F'up2°
--
I want my pea! I EARNED that pea!
Jul 23 '05 #6
How does the user know that? Do the cells have colored backgrounds?

"nntp" <nn**@aol.com> wrote in message
news:0W************@news04.bloor.is.net.cable.roge rs.com...
because in the left table, each cell is 50px high, and for the right
table,
some cell is only 2 lines, so only 30px high, some cell has 20 lines, to
make it 200px high. i want to be able to force the height, either by force
the cell to widen, but limit each cell of the rightable to be exact 50px
high.
How does the user know they are different heights?

"nntp" <nn**@aol.com> wrote in message
news:aJ********************@twister01.bloor.is.net .cable.rogers.com...
> It does not work, as one table requires fixed heights. Your method will
> always puth both tables in the same heights, not <td> and not even able to > fix the td height.
>
> ---------
> | |
> ---------
> | |
> ----------
>
> table one is fixed. I have to let talbe two to match each cell height
> of
> table one.....
>
>
>
>> Make a third table with one row and two cells
>>
>> put a table in one of the cells of the new table
>>
>>
>> "nntp" <nn**@aol.com> wrote in message
>> news:VI*********************@twister01.bloor.is.ne t.cable.rogers.com...
>> >I am making two tables side by side. I need talble's each elements to
> match
>> > table two's. So the <td> in both must have the same heights.
>> > However.
> one
>> > talble's content's length is unknown under dynamic content is made.
>> >
>> > I tried to use <td height=xxx> but it does not force the height, but
> only
>> > set the minimal height.
>> >
>> > I want to know if there is a way to limit the height. or even the
>> > length
>> > of
>> > the content, so if it has 1000 charater long, it will only show the
> first
>> > 100 etc.
>> >
>> > Sorry, Iframe can not be used for some special purpose.
>> >
>> > The only other thing I can think of is the TEXTAREA whose height is
>> > inforced
>> > properly.
>> >
>> >
>>
>>
>
>



Jul 23 '05 #7
UnPlionkable .
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^
YMMD!

wrote:
[Top post]

PointedEars, F'up2
--
Everyone brings joy to this world - some by arriving, most by leaving.
Jul 23 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Graham J | last post by:
Apologies for the partial post that mysteriously escaped as I was composing. I shall try again. For many years I have been happily and successfully coding tables such that the WIDTH specified...
1
by: Vitabiz Productions Ltd | last post by:
Hello, I'm currently experiencing some problems with the following code: <TABLE border=1 cellpadding=0 cellspacing=0> <TR> <TD BACKGROUND="images/menu.gif" WIDTH="170px" HEIGHT="372px"...
20
by: http://links.i6networks.com | last post by:
I need to display pictures, but only as large as AxB. If it is smaller than AxB, then I will display it in the original size, if it is larger than AxB, I will resize it. However, if the size is...
16
by: karlman | last post by:
I am trying to create a web page that shows a calendar schedules. I am attempting to use table cells with fixed widths and different colors to display this. It seems that IE6 doesn't always...
3
by: Lamberti Fabrizio | last post by:
I've got the problem described in the table above. I've put a div red with some text inside a TD, but its height is less than 100% of TD height as you can see. I've defined the following...
3
by: Jefferis NoSpamme | last post by:
Hello all, I'm trying to limit the file size to 1 meg on upload of image files and I am trying a script from javascript internet, but it is giving me errors on IE ² is null or not an object ³...
4
by: Derty | last post by:
Any way to limit the length of databound text on a datalist itemtemplate?
0
by: hans58 | last post by:
Hi My problem seems simple but I search for hours and cannot find the solution. Problem when I use a table: I have 3 cells. Top left a fix corner image. Left should be an expanding TD. On...
2
by: markszlazak | last post by:
I'm a relatively slow response of table cells changing their background color with mouseover/our in IE6 (Win 2K) but the response is fine (fast) in Firefox. Why? The code is below. Sorry about the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.