SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2004
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    rectangle - stretch/shrink width by dragging using javascript?

    A graphic best illustrates the idea, which is pretty basic:



    I'd like to have a rectangle which the user can resize <-width only-> by dragging on either side

    I've seen drag and drop classes but they seem like overkill and yet I'm not easily able to pull out just enough to fo this.

    does anyone know of a simple class or way of achieving this?

  2. #2
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here's a quick demo that should at least illustrate the basic technique.


Bookmarks

Posting Permissions

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