I'm not really sure if I understand your problem. Settings the maxWidth en maxHeight should force the colorbox to always fit in the screen. If you are opening an image, the image should be resized to fit in the colorbox.
See this example, using only the bootstrap css and the default colorbox css/js. http://jsfiddle.net/6f4qc/ The image always fits in the iframe. On Thu, Jun 7, 2012 at 10:17 PM, C.L. Simco <[email protected]>wrote: > Thank you Barry, you always have good insight and foundation. > > Yes, I did, to both. Though not as elegantly as your snippit. I've tried > through the colorbox.css as well. > I put your line in the head of the page, within the script tags and below > the content for the colorbox modal. No dice. > > Oddly on one of my hacks using this : > > $("a[rel='colorbox']").colorbox({ > onComplete: function() { > $("a[rel='colorbox'").colorbox.resize(max-width:100%); // what > in the world goes here to get the colorbox? > }, > preloading: true > }); > > I was then able to get the image to load into the shrunken browser BUT it > was not in the modal. > > I have tried to incorporate the bootstrap modal into colorbox to no avail > also. > Admittedly I am hacking with a chain saw since I am just scratching the > surface of real understanding. > > Thanks again for your reply..... >
