2

I'm using the JqueryUI/Effects/Scale plugin to shrink/grow divs and the content inside. It works great for text and even embedded youtube clips, but doesn't scale images contained within. Is there a workaround for this?

Sparky
  • 98,165
  • 25
  • 199
  • 285
Ben Jones
  • 919
  • 1
  • 8
  • 22
  • 1
    Is it supposed to scale images? [Look at this other thread about a different plugin.](http://stackoverflow.com/questions/1396279/jquery-ui-resizable-plugin-scaling-a-div-and-the-contents-within) – Sparky Jul 27 '11 at 19:25
  • 1
    Adding a width="100%" attr to my images seems to work. Thanks! – Ben Jones Jul 27 '11 at 19:35

1 Answers1

4

As per this other thread, using another UI plugin with a similar issue, the ultimate solution was to set the image size as a percentage.

Community
  • 1
  • 1
Sparky
  • 98,165
  • 25
  • 199
  • 285