Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-06-2006, 08:33 PM   PM User | #1
johnnyCoder
New to the CF scene

 
Join Date: Mar 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
johnnyCoder is an unknown quantity at this point
Scrolling table inside an iframe?

I have a table that I need to scroll without the headers moving. So I made two seperate tables, with the headers in one and the body in another. I put the bottom table in a div and I make it scroll. The problem is, this table is in an iframe, and I dont want the scrollbar on the iframe so I set it to scrolling="no". But instead of the table taking up the iframe and the rest of it scrolling, the table runs off the iframe with no scrollbar. If I set my table div to a specific height, like 200px, it will work fine, but I need it to take up the entire iframe, as in height=100%. Any ideas?
johnnyCoder is offline   Reply With Quote
Old 03-07-2006, 12:36 PM   PM User | #2
Thompson
New Coder

 
Join Date: Mar 2006
Location: São Paulo, Brazil
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Thompson is an unknown quantity at this point
show your code for us, it will give me a better idea of what you really want.
__________________
----
As coisas mais simples são as mais importantes.
---------
Thompson M1A1: D-Day
----------------
Thompson is offline   Reply With Quote
Old 03-07-2006, 01:48 PM   PM User | #3
Masterslave
Regular Coder

 
Masterslave's Avatar
 
Join Date: Dec 2005
Posts: 287
Thanks: 2
Thanked 0 Times in 0 Posts
Masterslave is an unknown quantity at this point
Maybe this is something:
http://imar.spaanjaars.com/QuickDocId.aspx?QUICKDOC=357
__________________
Do you Ubuntu?
Mozilla Firefox!
Masterslave is offline   Reply With Quote
Old 03-07-2006, 03:14 PM   PM User | #4
johnnyCoder
New to the CF scene

 
Join Date: Mar 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
johnnyCoder is an unknown quantity at this point
Got it working

I got it working by using javascript to dynamically getting the iframe visible height and settting my div to that height. So its a workaround, but I never figured out why setting the height to 100% would cause the content to go out of sight instead of getting a scroll bar. Thanks for the replies.
John
johnnyCoder is offline   Reply With Quote
Old 03-07-2006, 03:18 PM   PM User | #5
mark87
Senior Coder

 
Join Date: Dec 2004
Location: Essex, UK
Posts: 2,636
Thanks: 0
Thanked 0 Times in 0 Posts
mark87 is on a distinguished road
This is a better option IMO -

http://www.imaputz.com/cssStuff/bigFourVersion.html

Or

http://www.imaputz.com/cssStuff/bulletVersion.html
__________________
markaylward.co.uk
mark87 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 10:36 PM.


Advertisement
Log in to turn off these ads.