hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Design and Content : Scrollbars in tables
Reply

Forum Jump

Scrollbars in tables

Reply Post New Thread In Web Design and Content Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old
New Member
 
Join Date: Sep 2003
Posts: 2

Scrollbars in tables


Is there a way to do it? so I have only a table that scrolls down which will contain more content, and not the whole page?



Sponsored Links
  #2  
Old
Corporate Member
 
Join Date: Aug 2002
Location: London, UK
Posts: 9,036
Use an iframe to achieve this.

__________________
Matt Wallis
United Communications Limited
High Performance Shared & Reseller | Managed VPS Cloud | Managed Dedicated
UK www.unitedhosting.co.uk | US www.unitedhosting.com | Since 1998.

  #3  
Old
Web Hosting Master
 
Join Date: May 2002
Location: UK
Posts: 2,994
You can do it in DHTML, but it's not worth the effort IMHO when you can do it in iframes

Sponsored Links
  #4  
Old
New Member
 
Join Date: Sep 2003
Posts: 2
Well I've never used frames before, so how would I do it?

Edit: Never mind, I saw the other topic in here about it, and have done it Thanks


Last edited by Teh Plug; 09-22-2003 at 08:38 AM.
  #5  
Old
Newbie
 
Join Date: Oct 2002
Posts: 24
what did u use?

i only know how to use <div>

  #6  
Old
Web Hosting Master
 
Join Date: May 2002
Location: UK
Posts: 2,994
Read this forum... loads of threads about iframes alone!

  #7  
Old
New Member
 
Join Date: Sep 2003
Posts: 3
use tbody

we can create a tbody in css with this code

tbody {
height: 20;
overflow: scroll;
}


then just put a <tbody> tag before
<tbody>
<tr><td>body</td></tr> ... ... ..
</tbody>

works only in netscape though...

  #8  
Old
Web Hosting Master
 
Join Date: Jul 2002
Location: Sweden
Posts: 2,065
Overflow to create a scrollbar works in IE as well.

__________________
"Stop flame-wars - Report a post"
The original Kitty Lizard

  #9  
Old
New Member
 
Join Date: Sep 2003
Posts: 3
Quote:
Originally posted by Reptilian Feline
Overflow to create a scrollbar works in IE as well.
do i have to use tbody?
i dont know why but it seems that it doesn't work. on my IE... oh well i love using mozilla-firebird so i uges its ok.

  #10  
Old
Web Hosting Master
 
Join Date: Jul 2002
Location: Sweden
Posts: 2,065
Put a div inside the TD and make that scrollable instead. Post some code and I'll test a couple of variations for you.

__________________
"Stop flame-wars - Report a post"
The original Kitty Lizard

  #11  
Old
New Member
 
Join Date: Sep 2003
Posts: 3
Quote:
Originally posted by Reptilian Feline
Put a div inside the TD and make that scrollable instead. Post some code and I'll test a couple of variations for you.
oh you could do that all right...
but its just so hard aligning the headers to the body.

so i used tbody.
you cant use the <DIV> outside the <TD>.
and you cant use the <DIV> inside the table either. so get the picture... you have to create a separate <TABLE> for the header and the body its so hard to align.

  #12  
Old
WHT Addict
 
Join Date: May 2003
Location: Lima, Perú
Posts: 164
HTML:

Code:
<table width="450" border="1" cellspacing="0" cellpadding="0">
     <tr height="80">
          <td width="90" height="80">
               <span class="scroll">
                    This will scroll.
               </span>
          </td> 
     </tr>
</table>
CSS:

Code:
.scroll  { width: 100%; height: 100%; overflow: auto }
By using span, instead of div, you can make it fill just the cell you're working in.

Reply

Related posts from TheWhir.com
Title Type Date Posted
Announcing the WHD.global VIP Pass Winner! Blog 2014-03-27 16:00:39
Google Releases Hosted Database Service Cloud SQL to General Availability Web Hosting News 2014-02-12 13:46:02
Managing a Completely Remote Workforce Web Hosting News 2014-05-01 08:25:34
Jelastic Launches Version 1.9.1 of Java and PHP Hosting Platform Web Hosting News 2013-05-21 09:39:09
Amazon Web Services Reduces Price of DynamoDB NoSQL, Adds Reserved Capacity Web Hosting News 2013-03-08 15:19:40


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?