Results 1 to 4 of 4

Thread: Resize without scale [Resolved]

  1. #1

    Thread Starter
    Fanatic Member Mushroom Realm's Avatar
    Join Date
    Mar 2002
    Location
    Murrieta, California
    Posts
    650

    Resize without scale [Resolved]

    I have an image that I want to resize, but I only want to change the height of the image. If I use the .height property it scales the whole image to be that height, and it changes the width. Basically I want to hide the bottom of the image from view until the perform a certain action. How would I do this?
    Last edited by Mushroom Realm; Feb 22nd, 2003 at 12:25 PM.

  2. #2
    Frenzied Member DeadEyes's Avatar
    Join Date
    Jul 2002
    Posts
    1,196
    How about two images one with the bottom and one without?

  3. #3

    Thread Starter
    Fanatic Member Mushroom Realm's Avatar
    Join Date
    Mar 2002
    Location
    Murrieta, California
    Posts
    650
    That would work, but only one problem. I dont want it to change the src in the onmouseover, is there a way to just hide the image?

  4. #4
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    If you set the width property to what the image's width is anyway, you will be able to change the aspect ratio by changing the height.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

Posting Permissions

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



Click Here to Expand Forum to Full Width