Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Box with text

  1. #1
    Regular Coder
    Join Date
    Oct 2011
    Posts
    136
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Box with text

    Hello all. I'm new to JS and really know very little. I have a lot of text I want to put on a web page. but instead of scrolling the whole page. I want it in a box on the page to one site. Does anyone have script for scrolling box , and that I can control the color scheme of the slider bar?

    This is what I have now. But there is a lot of people that can't see the scroll ba with there browser.

    http://www.cjwebconsulting.com/newsite/index.html

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,594
    Thanks
    23
    Thanked 646 Times in 645 Posts
    You have TWO boxes, one inside of the other, and that is causing your problems
    <div id="right-col">
    <div id="preamble">

    They are styling the same stuff and one is not needed. Remove the <div id="right-col"> and it's closing tag. You might need to tweak the 'preamble' div a little, but you get rid of the scroll bar which is generated by the 'right-col' div.
    Evolution - The non-random survival of random variants.

    "If you leave hydrogen alone, for long enough, it begins to think about itself."

  • #3
    Regular Coder
    Join Date
    Oct 2011
    Posts
    136
    Thanks
    4
    Thanked 0 Times in 0 Posts
    But I do want the scroll bar. I want to control the scroll bar color. For example you see the slider is grey and background is white. I want to change the colors.

  • #4
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,594
    Thanks
    23
    Thanked 646 Times in 645 Posts
    You can't change a scroll bar color. It is a part of the browser. Back in the browser war days IE had a means of doing that, but believe as they come to their senses and joining the rest of the world, this has gone bye-bye.

    Maybe use the "more" word in the bottom right of the div to show more. Or place a boarder around the div with the slide bar. Just things to try.

    IMHO if people can't see the scroll bar make it so they don't need one.
    Evolution - The non-random survival of random variants.

    "If you leave hydrogen alone, for long enough, it begins to think about itself."


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •