Results 1 to 2 of 2

Thread: adding a scroll bar..

  1. #1
    Join Date
    Mar 2007
    Posts
    1

    adding a scroll bar..

    ok here is a picture of were i need the scroll bar







    ut I dont know how to make it. Any web designers help me out please lol because this is very important to me.

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    Make a container div for the central part of your page with a width and height and overflow: scroll.

    <div style="width: 700px; height: 500px; overflow: scroll;">............</div>

    If you only want a vertical scrollbar then the code is overflow-y: scroll; overflow-x: hidden;
    or overflow-y: scroll; overflow-x: auto which will make a horizontal scrollbar only if required.

    http://www.wickham43.supanet.com/tut...llingdivs.html
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Similar Threads

  1. no horizontal scroll bar
    By dmelo in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 12 Feb 2007, 01:31 AM
  2. OnLoad Scroll Bar Position or name anchor?
    By Twitch in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 10 Oct 2005, 08:31 AM

Posting Permissions

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