PDA

View Full Version : Horizontal Scroll Bar? No vertical...


tahoekidd
01-30-2010, 02:31 AM
I'm new here, but thought all you guys/gals could help me. I'm developing a new site and
[Removed link] that I can't seem to get to work. It's a horizontal scroll bar with products for sale. I've looked at a few explanations, but they're all using the "overflow" in CSS and it scrolls vertical NOT horizontal. Stumped!

Any help would be very appreciated!

Thank you so much!

"J"
8)

edbr
01-30-2010, 03:14 AM
Look At The Source Code. They Are Using Javascript

tahoekidd
01-30-2010, 02:23 PM
Unfortunately I don't know JS. Isn't there a way to do this with CSS?

domedia
01-30-2010, 08:15 PM
Why can't you use CS for the scrollbar?

tahoekidd
01-30-2010, 09:18 PM
Why can't you use CS for the scrollbar?

CSS for the scrollbar you mean? I've seen this done a few times using CSS, I just can't figure it out.

domedia
01-30-2010, 09:36 PM
What can't you figure out? Make a horizontal scrollbar is not really hard.
overflow: auto and make sure the height of the container is as tall as the content.

Example:
<div style="height: 100px; width: 200px; overflow: auto;">
<div style="height: 100px; width: 1000px;"> Put whatever in here</div>
</div>

tahoekidd
02-01-2010, 02:48 PM
Awesome man! Works like a charm! I knew it was something simple. Thanks again!

domedia
02-01-2010, 03:46 PM
Great, let us know if you have any other CSS/HTML questions 8)