Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Creating a scrolling window
Old 09-29-2008, 04:50 PM Creating a scrolling window
tonya's Avatar
Ultra Talker

Posts: 485
Location: world traveller based in UK
Trades: 0
I have seen a few sites with a scrolling window it looks great & is just what I am after for a new project.

On one site it was an iframe but on the other it was achieved through CSS using what looked like a hidden overflow & some other styling to achieve a scrolling effect

It can be seen here on this wordpress theme

http://www.elegantwordpressthemes.co...iew/GrungeMag/

Does anyone know how to achieve this type of thing best ????

Thanks
__________________
Tonya

::
Please login or register to view this content. Registration is FREE
::
Please login or register to view this content. Registration is FREE
tonya is offline
Reply With Quote
View Public Profile Visit tonya's homepage!
 
 
Register now for full access!
Old 09-29-2008, 07:00 PM Re: Creating a scrolling window
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
The two methods you mentioned (iframe and div with overflow) are the way it's done. Best really depends on the goals of the page. With an iframe realize that the content filling up the frame is going to come from another file. With the div method all the content is on the same page.

There are times it makes more sense to have the content in an iframe come from another page. Other times it makes more sense to keep all the content on your page. I'd probably lean toward using the div css method, but both methods are really fine.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 09-30-2008, 05:04 PM Re: Creating a scrolling window
tonya's Avatar
Ultra Talker

Posts: 485
Location: world traveller based in UK
Trades: 0
DO you know of any good examples of the DIV CSS code method - I have done the iframe before but might try the other method

Thanks
__________________
Tonya

::
Please login or register to view this content. Registration is FREE
::
Please login or register to view this content. Registration is FREE
tonya is offline
Reply With Quote
View Public Profile Visit tonya's homepage!
 
Old 09-30-2008, 05:43 PM Re: Creating a scrolling window
Junior Talker

Posts: 2
Trades: 0
I usea DocOzones' Scrolling window, which is very usefull and customizable!

Link: http://www.znippets.com/ZscrollBar/
__________________

Please login or register to view this content. Registration is FREE

Photoshop, Code & More
Wakkos is offline
Reply With Quote
View Public Profile Visit Wakkos's homepage!
 
Old 09-30-2008, 05:58 PM Re: Creating a scrolling window
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
There's nothing really special to it. Your html would just be a div with a class or id assigned and then everything you want to display inside:

<div id="scroll">
all your content here
</div>

Then the css:

div#scroll {overflow: scroll-y}

That would give you the vertical scrollbar and no horizontal one. You'll probably want to set the width and height of the div as well.

The css overlow property has a few values, but most likely scroll-y is what you'll want.

Here's another tutorial called styling scrollable areas that uses javascript to style the scroll bar.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Last edited by vangogh; 09-30-2008 at 06:02 PM..
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 09-30-2008, 06:02 PM Re: Creating a scrolling window
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Quote:
but most likely scroll-y is what you'll want.
or "auto", which won't add scrollbars unless the content exceeds the set height.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is online now
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 09-30-2008, 06:41 PM Re: Creating a scrolling window
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
True enough about 'auto' and I think you can do auto-x and auto-y. Not 100% sure on that though.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 09-30-2008, 09:18 PM Re: Creating a scrolling window
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Yes, though it is not used very much.

***EDIT***
actually, it is overflow-x: auto;
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.

Last edited by wayfarer07; 09-30-2008 at 09:20 PM..
wayfarer07 is online now
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Reply     « Reply to Creating a scrolling window
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.85676 seconds with 12 queries