www.webdeveloper.com
Results 1 to 7 of 7

Thread: Scrollbar within a table

  1. #1
    Join Date
    Jan 2003
    Posts
    21

    Scrollbar within a table

    Is there anyway I can use a scrollbar within a table?
    I know it can be easily done with flash, but I wanted to do the same thing in html.

  2. #2
    Join Date
    Sep 2003
    Location
    Portsmouth, UK Occupation: Web Developer
    Posts
    2,602
    just insert a textbox inside the cell

    <textarea value="XXXXXX" rows="2" name="S1" cols="20"></textarea>

    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

    Hope this helps

  3. #3
    Join Date
    Nov 2002
    Location
    Auburn, AL
    Posts
    9,222
    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
    <div style="height:yourheight;width:yourwidth;overflow:auto;">stuff in the div</div>
    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.
    <iframe src="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>
    To see it done with an iframe view my site www.clanknights.vze.com, to play around with different overflows for a div go to
    http://www.w3schools.com/css/tryit.a...rycss_overflow
    Last edited by PeOfEo; 09-12-2003 at 01:33 AM.

  4. #4
    Join Date
    Sep 2003
    Location
    Portsmouth, UK Occupation: Web Developer
    Posts
    2,602
    you can still put images and other elements in the scrollbox what u tlking about?
    Richard Turner - A Virtual Insight

  5. #5
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Images in a <textarea>? I'd like to see how you managed that one...

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

  6. #6
    Join Date
    Jan 2003
    Posts
    21

    Talking I got it!!!

    Thanks so much for all of your replies...but I think I know how to do it now.

    I saw this website from www.CoolHomepages.com (a great resource for design and such), http://www.maddenmedia.com/maddenmedia/index_html.html (see About) and I viewed and copied some of their source code for creating a scrollabe area within a table.

    Their idea was really great, simple and very clean, just like it would look in a flash environment.

    I'm still working on it though...so I'll keep my fingers crossed.

  7. #7
    Join Date
    Nov 2002
    Location
    Auburn, AL
    Posts
    9,222
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles