473,387 Members | 1,834 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,387 software developers and data experts.

How To Dynamically Expand a TD HTML Tag

Hi Everyone,

I have a table with multiple rows containing 2 columns each. The first column contains text that can get several lines long and cause the TD tag to expand in height to fit the text accordingly. In the second column I have an image.

The default height of the TD's is 23px. When the text in the first column is large enough to increase the TD height, the second column with the image stays at 23px.

This would normally not be an issue, but I use alternating row colors (gray and white). For the white colored rows things look like there is no problem. However, on the gray rows you can clearly see the expansion.

Any help in this matter would be greatly appreciated.

Thanks.
Aug 20 '08 #1
1 1031
Curtis Rutland
3,256 Expert 2GB
This sounds like something that will be better done in javascript. Remember that .NET is a server side language, Javascript is client side. This sounds like a client side problem.
Aug 20 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: John | last post by:
Hi, we have the following problem: in our application v1.0 we have static html pages (+ some javascript). With a CMS (a Content Management System) some "mortal" people can add or expand the...
3
by: Andrew Dodgshun | last post by:
I have 2 grids - one shows a list of table names in a database and when you click on a table name the other grid dynamically populates the grid with the table contents. My problem is that I cannot...
8
by: Donald Xie | last post by:
Hi, I noticed an interesting effect when working with controls that are dynamically loaded. For instance, on a web form with a PlaceHolder control named ImageHolder, I dynamically add an image...
48
by: Michel Rouzic | last post by:
I know it must sound like a newbie question, but I never really had to bother with that before, and I didn't even find an answer in the c.l.c FAQ I'd like to know what's the really proper way...
3
by: rajachezhian | last post by:
hello, i am new to javascript. i want to use DIV object for expand/collapse the Tree Dynamically like Microsoft explorerer.MY size of the tree elements are changeing Dynamically. I need some...
11
by: Nospam | last post by:
I don't know what it is I am doing wrong, I am trying to get the menus to either expand or contract based on their previous states, i.e if already expanded if clicked again contract, and if...
1
by: Chris | last post by:
Hi- I'm running this database query where the results will be used to populate my treeview. For Each drPA As DataRow In dsMasterList.Tables(0).Rows iRoot = iRoot + 1 nRootNode = New...
1
by: spoonybard | last post by:
Hi Everyone, I have a table with multiple rows containing 2 columns each. The first column contains text that can get several lines long and cause the TD tag to expand in height to fit the text...
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: 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
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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...
0
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,...
0
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,...
0
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...

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.