I am looking to build a page that doesn't have a scroll bar. Instead i want the contents on the page to have there own cool separate scroll bars like you see in a Flash site. can some one please point me in the right direction, thanks
<Iframe></IFrame> learn about this tag... this is one way of doing it. i think you are looking for this one..
The answer is CSS. You should wrap around the content you want with separate scrollbar with overflow: auto. Example: <div class="scrolled"> sometext<br> sometext<br> sometext<br> sometext<br> sometext<br> sometext<br> sometext<br> sometext<br> sometext<br> sometext<br> </div> HTML: And in the CSS part: .scrolled { postition:absolute; width: (desired width in pixels); height: (desired height in pixels); overflow: auto; } HTML: So when the content's wodth or height exceeds the size you selected in the CSS, it will appear a scrollbar around the content, because of the overflow.
Ok, cool, but it has that horrible standard scroll bar, is there any way to change that to your custom one, no... And thanks
I think there is but it works only on Interenet Explorer. Read this: http://www.javascriptkit.com/howto/scrollbarcolor.shtml
If you're talking about coloring your scrollbars, that can only be done in Internet Explorer, Opera and Konqueror. No other browser to my knowledge supports that. If you want to kill the default scrollbar, you'll have to globally collapse all of your margins and padding using the universal selector (* { margin: 0; padding: 0;}), set the HTML and BODY elements to height: 100%: overflow: hidden (since IE 5/6 treat height as min-height, using overflow: hidden will force it to act like height does in more standards compliant browsers, such as IE 7, Firefox, Opera, Safari and Konqueror). Then you're going to have to use fixed positioning to affix your footer to the bottom of the viewport (which IE 5/6 doesn't support unless you force it, which can be done using CSS alone but will screw up any relative positioning you use elsewhere), and then set your heights on the page contents, and their overflow properties on those elements to auto (to force the scrollbar if the contents exceed the height of their containers). It's not a pretty solution, and requires a LOT of bending over backwards, but it can be done.