Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.216
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ? This s...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriously...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - Scroll bars in blocks without iframe?
Scroll bars in blocks without iframe?

4 Replies / 2874 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » How To's

View previous topic :: View next topic


joeman
Reputation: 461.4 Add RepSubtract Rep
Local time: 11:04 AM

usa.gif

Noob
Noob

0.00 posts per day
Medals: 0

Joined: Aug 11, 2007
Last Visit: 16 Aug 2007
Posts: 4
Points: 100 

Post Scroll bars in blocks without iframe? Posted: Sat Aug 11, 2007 5:08 pm

Is there a way to create a block and constrain its size, placing scroll bars on it to scroll through content that is larger than the size constraints of the block itself without using iframes to do it?

Alternately, is there a way to use an iframe to call content from the site itself? Meaning - I have a block that is working the way I want it to, but it's too "tall" (too much content). Is there a way to call that block directly for the src value in an iframe, and create a second block to put the iframe in? I'm unsure of how to do that, but I'm thinking there has to be a way, and it's just in how you phrase the url, maybe?
 

 
View user's profileSend private messageVisit poster's website Reply with quote

floppy
Reputation: 2088.8 Add RepSubtract Rep
votes: 22
Local time: 12:04 PM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.17 posts per day
Medals: 2 (View more...)
Dedication (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 03 May 2012
Posts: 2353
Points: 132516 

Post Scroll bars in blocks without iframe? Posted: Sat Aug 11, 2007 6:44 pm

Shop Purchases:
Clan Roster 2.0 · Multi Gaming (Warrior) Evo Theme · COD6 ModernWarfare 2 Teaser Splash Screen · Left for Dead Evo Extreme Version

You can try some simple css.

Code:
<div style=\"border:none; height:98px; width:100%; overflow-x:scroll; overflow-y:scroll;\">Your Content here</div>



Here are all the properties
http://www.w3schools.com/css/pr_pos_overflow.asp
 

Phpnuke Downloads | VMaxxRx Male Enhancement  
View user's profileSend private messageVisit poster's website Reply with quote

joeman
Reputation: 461.4 Add RepSubtract Rep
Local time: 11:04 AM

usa.gif

Noob
Noob

0.00 posts per day
Medals: 0

Joined: Aug 11, 2007
Last Visit: 16 Aug 2007
Posts: 4
Points: 100 

Post Scroll bars in blocks without iframe? Posted: Sun Aug 12, 2007 8:28 pm

That's a very cool CSS property that I wasn't aware of - thanks!

However; I'm not sure how to make this work with my existing PHP code.

I've got a mess of content already: do I wrap all of the php (including the <?php ?> in the div? Or do I insert the div inside and use $content =.""; statements to declare it?

My weakness here is (probably obviously) PHP. The closest I've come is Ruby. I'm learning PHP as I go, but I'm still stumbling around in the dark a bit.
 

 
View user's profileSend private messageVisit poster's website Reply with quote


joeman
Reputation: 461.4 Add RepSubtract Rep
Local time: 11:04 AM

usa.gif

Noob
Noob

0.00 posts per day
Medals: 0

Joined: Aug 11, 2007
Last Visit: 16 Aug 2007
Posts: 4
Points: 100 

Post Scroll bars in blocks without iframe? Posted: Sun Aug 12, 2007 8:58 pm

I think I figured it out. Here is the code I ended up using, within the <?php ?> tags, to wrap the table I wanted to scroll:

Code:

$content .= "<div style=\"border:none; height:400px; width:100%; overflow:auto;\">";

MY TABLE/CONTENT HERE

$content .="</div>";


Thanks a TON for pointing me in the right direction!
 

 
View user's profileSend private messageVisit poster's website Reply with quote

Ped
Reputation: 93.3 Add RepSubtract Rep
votes: 37
Local time: 6:04 PM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

1.82 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 24 May 2012
Posts: 3669
Points: 191761 

Post Re: Scroll bars in blocks without iframe? Posted: Sun Aug 12, 2007 9:24 pm

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

Glad it worked for you !
 

 
View user's profileSend private messageSend e-mail Reply with quote
Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » How To's


 
4 Replies / 2874 Views
Page 1 of 1
All times are GMT
Display posts from previous:   
 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum