Old 04-20-2007   #1 (permalink)
Creampuff
 
Join Date: Apr 2007
Posts: 4

HTML Scrollbar

I'm currently working on a school project in Dreamweaver and I'm fairly HTML/CSS/any programming language inept. I'm using tables (I know, I'm a horrible person), and I need a scrollbar in one of them. I've looked at several tutorials, several suggestions in this forum and others. The problem is, like I said, I'm fairly inept at web programming. If anyone could help me with this, I'd be very, very grateful.
SaikonoYume is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 04-20-2007   #2 (permalink)
Janitor of Lunacy
 
tamlin's Avatar
 
Join Date: May 2006
Location: Sitting in the Wishing Chair
Posts: 4,940

As far as I know, you can do this with CSS. The code is something like the following:

Code:
<style type="text/css">
  #tableID { overflow: scroll; } 
</style>

<table id="tableID">
 ... 
</table>
However, I'm sure someone who knows what they're talking about will be along shortly...(Hey Big Mike, where are you?)
__________________


Religion: It's all fun and games until someone gets burned at the stake...
tamlin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 04-20-2007   #3 (permalink)
Creampuff
 
Join Date: Apr 2007
Posts: 4

Yeah, that didn't work, and I really don't know why.

I should probably mention that I've made a table within a table. The inital table contains the area my text needs to go, and the table within that table contains my navigation.
SaikonoYume is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 04-20-2007   #4 (permalink)
Janitor of Lunacy
 
tamlin's Avatar
 
Join Date: May 2006
Location: Sitting in the Wishing Chair
Posts: 4,940

OK, I've done a bit more digging on this. Apparently, you need to put a DIV inside your table, and then the DIV generates the scrollbars.

Something like this:

Code:
<table border="1">
  <tr>
    <td>Here is some text in the main table
      <table border="1">	  
        <tr>
          <td><div style="width: 200px; height: 200px; overflow: scroll;">
	    <p>This is the table-within-a-table</p>
            <p>Text</p>
            <p>Text</p>
	    <p>Text</p>
            <p>Text</p>
	    <p>Text</p>
            <p>Text</p>
	    <p>Text</p>
            <p>Text</p>
	    <p>Text</p>
            <p>Text</p>            
            </div>
	</td>
        </tr>
    </table>
	</td>
  </tr>
</table>
__________________


Religion: It's all fun and games until someone gets burned at the stake...
tamlin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 04-20-2007   #5 (permalink)
Creampuff
 
Join Date: Apr 2007
Posts: 4

Yay! It worked! Tamlin, you rock!
SaikonoYume is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 04-20-2007   #6 (permalink)
Janitor of Lunacy
 
tamlin's Avatar
 
Join Date: May 2006
Location: Sitting in the Wishing Chair
Posts: 4,940

Well, HTML is not really my strong point, but I'm glad it worked for you.
__________________


Religion: It's all fun and games until someone gets burned at the stake...
tamlin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Macronimous- Creating Dynamic PDF files using HTML and PHP macro123 HTML / PHP / ASP / JS 1 03-26-2007 02:44 PM
html playground site agentxi HTML / PHP / ASP / JS 5 02-22-2007 11:03 PM
PHP in HTML ultranet HTML / PHP / ASP / JS 3 01-04-2007 09:07 AM
Validating HTML & CSS ecntrc General Discussions 3 10-27-2006 09:03 PM
Using images for input fields in html.. Help! ViciOuS HTML / PHP / ASP / JS 7 08-29-2005 11:38 AM


All times are GMT +1. The time now is 11:43 AM.
Content Relevant URLs by vBSEO 3.2.0

Design & Content © BioRUST 2007 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT