Scrollbar within a table

liunx

Guest
Is there anyway I can use a scrollbar within a table?<br />
I know it can be easily done with flash, but I wanted to do the same thing in html.<!--content-->just insert a textbox inside the cell<br />
<br />
<textarea value="XXXXXX" rows="2" name="S1" cols="20"></textarea><br />
<br />
and the set value to what you want it to say, play around with rows/cols to get size right then lock the text so the box cant be clicked or deleted<br />
<br />
Hope this helps<!--content-->No thats not a good method, that is not what you want to do. That causes problems in that you can only put text inside of it not images or other elements. Also it looks like crap. There are two good ways to do it. A use a div with overflow specified as scroll or auto. To do this put this inside the cell<br />
<div style="height:yourheight;width:yourwidth;overflow:auto;">stuff in the div</div><br />
the other way to do it is by using an iframe. An iframe is a frame though so you will need another html file to open inside of it.<br />
<iframe src=http://www.webdeveloper.com/forum/archive/index.php/"thepageinside" name="iframename" height="someheight" width="somewidth"><a href="thepageinside">You dont support an iframe</a></iframe> The upside of the iframe is you can have links open inside of it by using <a href="somepage" target="iframename">link</a><br />
To see it done with an iframe view my site <!-- w --><a class="postlink" href="http://www.clanknights.vze.com">www.clanknights.vze.com</a><!-- w -->, to play around with different overflows for a div go to<br />
<!-- m --><a class="postlink" href="http://www.w3schools.com/css/tryit.asp?filename=trycss_overflow">http://www.w3schools.com/css/tryit.asp? ... s_overflow</a><!-- m --><!--content-->you can still put images and other elements in the scrollbox what u tlking about?<!--content-->Images in a <textarea>? I'd like to see how you managed that one...<!--content-->Thanks so much for all of your replies...but I think I know how to do it now.<br />
<br />
I saw this website from <!-- w --><a class="postlink" href="http://www.CoolHomepages.com">www.CoolHomepages.com</a><!-- w --> (a great resource for design and such), <!-- m --><a class="postlink" href="http://www.maddenmedia.com/maddenmedia/index_html.html">http://www.maddenmedia.com/maddenmedia/index_html.html</a><!-- m --> (see About) and I viewed and copied some of their source code for creating a scrollabe area within a table.<br />
<br />
Their idea was really great, simple and very clean, just like it would look in a flash environment.<br />
<br />
I'm still working on it though...so I'll keep my fingers crossed.<!--content-->I simplified the only too practical methods to do this, so if you have problems refer to my post above. There is a thrid way to do it, which is using an ilayer but that is a bunch of code and it is not very well supported.<!--content-->
 
Back
Top