How to make Div's Horizontally resizable by dragging right side

Discussion in 'JavaScript' started by kangaroobin, Mar 24, 2009.

  1. #1
    I need to know how to create a div tag and apply a script with css that will allow me to have someone be able to click and drag a right border of my div tag and resize it.

    Please let me know if you can help me with this!

    Thanks!
     
    kangaroobin, Mar 24, 2009 IP
  2. nishithkant

    nishithkant Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    no need to do more
    Just use overflow:scroll property to get scrollbar
    for horizontal scrollbar you can use overflow-x:scroll or auto


    Nishithkant
     
    nishithkant, Mar 25, 2009 IP
  3. kangaroobin

    kangaroobin Peon

    Messages:
    170
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ...I want to stretch my left sidebar 100% down to the footer
     
    kangaroobin, Mar 25, 2009 IP
  4. helara

    helara Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    helara, Mar 25, 2009 IP
  5. helara

    helara Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Oh, you can see on the sample that if you make the height fixed, the div will only grow horizontally, that's why I think it make work for you.

    Bye bye.
     
    helara, Mar 25, 2009 IP