38 users online (0 members and 38 guests)  

Thread: making div


  Results 1 to 2 of 2

Related

  1. Making a team    Forum: Website Promotion Forum
    Replies: 0
  2. Why is this making copies of it self?    Forum: CGI Perl Forum
    Replies: 4
  3. Making changes    Forum: HTML Forum
    Replies: 6
  1. #1
    dizyn's Avatar
    New User

    Status
    Offline
    Join Date
    May 2007
    Posts
    3

    making div

    Hi all

    I want to make a div using css, which can provide me scroll bar. like hight of the div would be around 200px and with would be around 150px but it should has scroll in it so that if i put more data in it, it don't expand

    thank you
    dizyn

  2. #2
    vinyl-junkie's Avatar
    Moderator

    Status
    Offline
    Join Date
    Sep 2005
    Posts
    721

    Re: making div

    Here you go:

    Code:
    scrollbox {
    	width: 150px;
    	height: 200px;
            overflow: auto;
    }
    Then your HTML would look something like this:

    Code:
    <div class="scrollbox">
        (div content goes here)
    </div>
    Last edited by vinyl-junkie; 11-14-2007 at 06:59 AM. Reason: Forgot "overflow: auto" on the CSS. Thanks, coothead! ;)
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more



Tags for this Thread