473,791 Members | 2,711 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3287
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******** *************@t wister01.bloor. is.net.cable.ro gers.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******** *************@t wister01.bloor. is.net.cable.ro gers.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******** ************@tw ister01.bloor.i s.net.cable.rog ers.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******** *************@t wister01.bloor. is.net.cable.ro gers.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******** ************@tw ister01.bloor.i s.net.cable.rog ers.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******** *************@t wister01.bloor. is.net.cable.ro gers.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.blo or.is.net.cable .rogers.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******** ************@tw ister01.bloor.i s.net.cable.rog ers.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******** *************@t wister01.bloor. is.net.cable.ro gers.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
12230
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 in a TD is the complete column width including any CELLPADDING. For example for a 400 pixel wide table with four 100 pixel wide columns and 10 pixel cellpadding... <TABLE WIDTH="400" BORDER="0" CELLSPACING="0" CELLPADDING="10">
1
11858
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" VALIGN=TOP>&nbsp;</TD> <TD BACKGROUND="images/content.gif" WIDTH="630px" VALIGN=TOP rowspan="2"> Some text lines<br>Some text lines<br>Some text lines<br>
20
2679
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 100x200, but I limited it to 50x60, then if I use height x width, the image does not display well. So, I want it to srink is a ratio of the original size, so it is will be from 100x200 to 30x60. How can I do it if it is hosted on my server, --...
16
12880
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 correctly render the widths exactly as intended. I am using dream weaver and when I copy the HTML code into that it renders perfectly. Is there any known issues with the way IE6 renders table cells with fixed widths?
3
6626
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 styles: div.test { background-color:red; height:100%; width: 100%; } table.test { border: 1px solid #CCCCCC; background-color:yellow; } td.test { border: 1px solid #CCCCCC; }
3
13143
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 ³ and isn¹t checking the file size or preventing the upload. ERROR IS <<<<Œthis.form.uploadfile.value² is null or not an object on this line:
4
2959
by: Derty | last post by:
Any way to limit the length of databound text on a datalist itemtemplate?
0
1116
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 the right a TD with variable content (I do not know the length). A CCCCC B CCCCC
2
3037
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 length. <html> <head> <title>Rapid Blocking Interface</title> <style> .calendar {
0
9669
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9515
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10426
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10207
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9993
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7537
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5558
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4109
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3713
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.