Welcome to Discuss Everything Forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.


 

Tags for this Thread

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Little Princess's Avatar
    Newbie - NLP

    Status
    Offline
    Join Date
    May 2009
    Posts
    18
    Downloads
    0
    Uploads
    0

    side by side scroll region in html?

    I am trying to set up a webpage that has a long list (in table form) on the left hand side of the page and on the right hand side are buttons and stuff that will effect items in that list. I would like the list to be scrollable, but for the buttons and stuff to be stationery.

    In its simplest form, so far I have this


    <div style="height:100%; width:80%; overflow:auto;" valign="top">
    <table> <tbody>
    <tr><td>howdies</td></tr> <tr><td>howdies</td></tr> <tr><td>howdies</td></tr> <tr><td>howdies</td></tr>
    <tr><td>howdies</td></tr> <tr><td>howdies</td></tr> <tr><td>howdies</td></tr> <tr><td>howdies</td></tr>
    (repeated enough times to be longer than the height of the browser window - to force scrollbar)
    <tr><td>howdies</td></tr> <tr><td>howdies</td></tr> <tr><td>howdies</td></tr> <tr><td>howdies</td></tr>
    <tr><td>howdies</td></tr> <tr><td>howdies</td></tr> <tr><td>howdies</td></tr> <tr><td>howdies</td></tr>
    </tbody> </table>
    </div>
    <span width="auto">right side</span>

    This has the table scrollable, but I can't seem to figure out how to get the right side to be on the righthand side without the line break after the <div>.

    I have tried setting the style for <div> to be inline, but that ended up disabling the scrolling. I tried putting it all in one table, but again, that disabled the scrolling part.

    I could put all of this into an iframe, but because the stuff on the right side is going to effect the stuff in the table, I can see that the iframe route is going to be yucky (going up and down levels in the javascript stuff).

    Is there something I'm missing or have overlooked? I can't seem to find a solution for how to do this.

    My primary target is for Firefox, but I'd prefer a solution that would work on any browser.

    Thanks.

  2. #2
    simbe1's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Jun 2011
    Age
    46
    Posts
    116
    Downloads
    0
    Uploads
    0
    try to change align=right...like this:<div style="height:100%; width:80%;
    overflow:auto;" valign="right">

 

 

Quick Reply Quick Reply

Click here to log in


What comes after M0nday

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 11-08-2010, 04:13 AM
  2. Replies: 0
    Last Post: 09-13-2010, 02:59 PM
  3. Replies: 0
    Last Post: 07-15-2010, 07:13 AM
  4. Replies: 0
    Last Post: 07-15-2010, 07:13 AM
  5. HTML scroll box code? Side-by-side?
    By weeee in forum Discuss HTML
    Replies: 0
    Last Post: 06-04-2010, 11:14 AM

Bookmarks

Posting Permissions

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