As long as the content being used in the modal has a height and width
supplied, SimpleModal will use those values to size the dialog.

For example, using the basic demo as a base and given the following:
<img src="image.jpg" style="display:none;" height="400" width="600"
id="basic-modal-content"/>

CSS:
#simplemodal-overlay {background-color:#000; cursor:wait;}
#simplemodal-container {color:#bbb; background-color:#333; border:4px
solid #444;}
#simplemodal-container a.modalCloseImg {background:url(../img/basic/
x.png) no-repeat; width:25px; height:29px; display:inline; z-index:
3200; position:absolute; top:-15px; right:-16px; cursor:pointer;}

JS:
$('#basic-modal-content').modal();

I get a the image with a border and the dimensions at 400x600.

Hope that helps.

-Eric




On Sep 9, 12:47 pm, Byron Matto <bma...@gmail.com> wrote:
> Question:
>
> Simple Modal has default height and width values of 200 and 300 pixels
> respectively.  Is there a way to the modal conform to whatever content
> is present.  In other words I want the modal to have height and width
> equal to the HxW of image modal is applied to ... automatically.
>
> Thoughts?

Reply via email to