Click to See Complete Forum and Search --> : Adding Scrollbar to Table DATA
v_karthi
06-30-2003, 06:00 AM
Hi All,
I have situation whereby I have to add a scroll for <TD> when the data exceeds certain amount. Does anybody has a solution for this?. If so, please post it the forum. Thanks in advance.
Regards,
Karthik.
khaki
06-30-2003, 08:50 AM
hi Karthick...
you can wedge a <div> between the <td> tags that contain the data.
the <div> will give you the scrolling capability that you need.
;) k
v_karthi
07-01-2003, 03:43 AM
Hi Khaki,
I tried to doing the technique you suggested. But it does not produce a scrollbar. The text appended to the table <td> is scrolling to the next line. I don't want it be scrolled to the next line. I want to have a scroll bar where users can scroll and see the message. Is anything to do with <td width>?. The below is the same of what I tried.
<table>
<tr> <td><div> test </div></td></tr>
</table>
Regards,
Karthi.
khaki
07-01-2003, 09:11 AM
hi Karthi...
I'm not sure I understand you.
You don't want it to scroll, but you want the user to be able to scroll?
(are those mutually exclusive)
:confused:
well anyway...
this is what I was talking about (it scrolls withing a <td>).
let me know if you are looking for something different...
since there are many ways to skin a cat (in a hat :) )
;) k
<table border="1" cellpadding="5">
<tr><td bgcolor="#ffffcc"> Green Eggs And Ham</td></tr>
<tr>
<td bgcolor="#99cc99">
<div style="width: 350px; height: 150px; overflow:auto; margin: 5px; background-color: #99cc99;">
I am Sam<br>
I am Sam<br>
Sam I am<br><br>
That Sam-I-am!<br>
That Sam-I-am!<br>
I do not like<br>
that Sam-I-am!<br><br>
Do you like green eggs and ham?<br><br>
I do not like them,<br>
Sam-I-am.<br>
I do not like<br>
green eggs and ham.<br><br>
Would you like them here or there?<br><br>
I would not like them<br>
here or there.<br>
I would not like them anywhere.<br>
I do not like<br>
green eggs and ham.<br>
I do not like them,<br>
Sam-I-am.<br><br>
Would you like them in a house?<br>
Would you like them with a mouse?<br>
I do not like them in a house.<br>
I do not like them with a mouse.<br>
I do not like them here or there.<br>
I do not like them anywhere.<br>
I do not like green eggs and ham.<br>
I do not like them, Sam-I-am.<br><br>
Would you eat them in a box?<br>
Would you eat them with a fox?<br><br>
Not in a box.<br>
Not with a fox.<br>
Not in a house.<br>
Not with a mouse.<br>
I would not eat them here or there.<br>
I would not eat them anywhere.<br>
I would not eat green eggs and ham.<br>
I do not like them, Sam-I-am.<br><br>
(etc)
</div>
</td>
</tr>
<tr><td bgcolor="#ffffcc"> By Dr. Seuss</td></tr>
</table>