Tobi
Tobi

Reputation:

jQuery UI Resizable Plugin – Scaling a <div> AND the contents within?

Does anybody have a clue, if it's possible to resize a <div> and the content (here: images)
within without using "alsoResize in combination with a class/id name".

In other words: Is there a workaround for:

 $('DIV').resizable({ handles: 'se', alsoResize: 'ITS CHILDREN' }); 

or are just class/id names allowed for alsoResize?

Upvotes: 0

Views: 1917

Answers (1)

manji
manji

Reputation: 47968

you can try :

$('DIV').resizable({ handles: 'se', alsoResize: 'img' });

or set your images Width & Height to % values.

By the way, class/id names are allowed for alsoResize.

Upvotes: 1

Related Questions