views:

20

answers:

1

I'm trying to dynamically (using ajax) get some content and create a modal (using the colorbox plugin) with it. The problem is that the content has some images in it. I think that the modal doesn't count them in it's height or width calculation or something. So if you close the modal and then open it it looks fine. (The first time you open it, it has the scroll bars to access the rest of the modal).

Ideas?

A: 

It looks like you just have to add the image's height and width attributes. Like so:

<img src="/path/to/image.jpg" width="100px" height="100px" />
Matthew