hosted by liquidweb


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

Web Design and Content Subjects include, HTML, graphics, editors, CSS, Flash, graphics creation, placing of ads, ad serv companies, copyright, content and nearly anything else design related. Also talk about businesses that provide design services. If you link to your site, you must post in Web Site Reviews.
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 09-22-2003, 05:50 AM
Teh Plug Teh Plug is offline
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?

Reply With Quote


Sponsored Links
  #2  
Old 09-22-2003, 07:05 AM
UH-Matt UH-Matt is offline
Corporate Member
 
Join Date: Aug 2002
Location: London, UK
Posts: 9,027
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.

Reply With Quote
  #3  
Old 09-22-2003, 08:02 AM
Rich2k Rich2k is offline
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

Reply With Quote
Sponsored Links
  #4  
Old 09-22-2003, 08:18 AM
Teh Plug Teh Plug is offline
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.
Reply With Quote
  #5  
Old 09-22-2003, 11:32 PM
sinthetiq sinthetiq is offline
Newbie
 
Join Date: Oct 2002
Posts: 24
what did u use?

i only know how to use <div>

Reply With Quote
  #6  
Old 09-23-2003, 05:29 AM
Rich2k Rich2k is offline
Web Hosting Master
 
Join Date: May 2002
Location: UK
Posts: 2,994
Read this forum... loads of threads about iframes alone!

Reply With Quote
  #7  
Old 09-24-2003, 12:22 AM
mitchikoy mitchikoy is offline
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...

Reply With Quote
  #8  
Old 09-25-2003, 10:47 AM
Reptilian Feline Reptilian Feline is offline
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

Reply With Quote
  #9  
Old 09-26-2003, 01:19 AM
mitchikoy mitchikoy is offline
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.

Reply With Quote
  #10  
Old 09-26-2003, 02:29 AM
Reptilian Feline Reptilian Feline is offline
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

Reply With Quote
  #11  
Old 10-01-2003, 03:48 AM
mitchikoy mitchikoy is offline
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.

Reply With Quote
  #12  
Old 10-01-2003, 04:00 AM
hdezela hdezela is offline
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 With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Web Host Go Daddy Says Internal Network Events, Not Hacker, Caused Service Outage Web Hosting News 2012-09-12 11:56:11
2012 Hottest Hosts Directory Magazine 2012-05-23 18:04:37
New on WHIR TV: Open-Xchange CEO Rafael Laguna at the OX Partner Summit Blog 2011-12-02 16:10:28
Web Host FireHost Partners with Cloud Security Firm Gazzang for Data Encryption Web Hosting News 2011-08-16 20:33:43
Understanding Small Business Magazine 2012-05-23 18:43:14


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?
Advertisement:
Web Hosting News:



 

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?