How to creat a scrollbar??

Discussion in 'JavaScript and AJAX' started by Talks_44, Sep 19, 2007.

  1. Talks_44

    Talks_44 New Member

    Joined:
    Sep 19, 2007
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    0
    i m about designing my personal page and i'd like to know if there's anyway i can create a scrollbar between a <div> tag using CSS??

    is there anyway i can use only arrows?? (transparent scroll only arrows that shows)

    thank you
     
  2. jwshepherd

    jwshepherd New Member

    Joined:
    Aug 13, 2007
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    VP Technology Corporation
    Location:
    Texas
    Home Page:
    http://www.officialhackers.com
    not sure about transparent scrollbar but you can make it the same color as the background or create a flash one.
     
  3. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    If you specify the div height and if your content in the div is of more height than the specified height there will be a scrollbar automatically.
     
  4. Talks_44

    Talks_44 New Member

    Joined:
    Sep 19, 2007
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    0
    I am interested in that kind of scroolbar, like in winamp, when you have the chance to chage the backgraound in transparent.!!!!!!!!!!!!
     
  5. Talks_44

    Talks_44 New Member

    Joined:
    Sep 19, 2007
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    0
    So it's possible..thx..!!
     
  6. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Yes very much. Check out some of the articles where you have code snippets of more than 30-35 lines like in Form validation with PHP & JavaScript
     
  7. Magena

    Magena Banned

    Joined:
    Jul 12, 2008
    Messages:
    20
    Likes Received:
    1
    Trophy Points:
    0
    You can use CSS to create a scrollable box. Consider this source code:

    <div style="width: 190px; height: 190px; overflow: auto; padding: 5px">
    content in here
    </div>
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice