Search code examples
javascriptjquerycssjquery-pluginsslimbox

Is there a way to set the minimum width of a slimbox popup?


We have several images in our app, some of which are less than 100 pixels wide. When this happens, the slimbox caption text and "Close [X]" link get cutoff. Is there a way to force the slimbox popup to a minimum width? There is an initialWidth option, but once the image loads it chooses the width of the image.


Solution

  • Use min-width css property. It doesn't allow real width to be less than min-width, even if it is set less eexplicitly in style.

    It doesn't work in ie6.