Ask questions and get good answers on mb.jQuery.components

Is there any posibility how to resize image inside mb.containerplus together with the box with keeping the aspect ratio? i would like to use it for slideshow. thanks

asked Oct 04 '10 at 11:31

tomeek's gravatar image

tomeek
111


Just for example:

<div class="containerPlus draggable resizable {buttons:'m,i,c', icon:'alert.png', skin:'white', width:'500', content:'test.html',dock:'dock',iconized:'true', title:'Ajax content!'}" style="top:100px;left:500px">
    <img src="your_image.jpg" style="width:100%"/>
  </div>

The image will get the width of the container and if you resize it the image will resize with it.

answered Oct 05 '10 at 15:01

Matteo%20Bicocchi's gravatar image

Matteo Bicocchi ♦♦
1776129

Just set images width as a percentage (f.e.: width:80%)

answered Oct 04 '10 at 13:33

Matteo%20Bicocchi's gravatar image

Matteo Bicocchi ♦♦
1776129

could you mark where in the code should i make the change?

answered Oct 04 '10 at 14:48

tomeek's gravatar image

tomeek
111

Your answer
toggle preview

jQuery main site - Matteo Bicocchi