colorbox icon indicating copy to clipboard operation
colorbox copied to clipboard

Image downsizing in Firefox

Open laszlo-horvath opened this issue 14 years ago • 8 comments

When I use the plugin as a simple lightbox for images everything looks as expected in every browser expect in Firefox (v12.0). In FF the image overlaps under the border divs and the right and the bottom side of the borders are not seen. So it seems to me the container is downsized because the image is bigger than the border becomes.

laszlo-horvath avatar May 22 '12 13:05 laszlo-horvath

I found a solution that one line CSS fixes the issue and it will still look good in all other browsers:

#colorbox { overflow: visible !important; }

FYI: You should check the plugin's javascript where you put 'overflow: hidden;' on the #colorbox div. It might not be neccesseary.

laszlo-horvath avatar May 22 '12 13:05 laszlo-horvath

Never heard of such. Does that happen on my demo pages, or just for your project? If it's just for your project, you may have some sort of CSS issue.

On Tue, May 22, 2012 at 9:41 AM, RynoRn [email protected] wrote:

When I use the plugin as a simple lightbox for images everything looks as expected in every browser expect in Firefox (v12.0). In FF the image overlaps under the border divs and the right and the bottom side of the borders are not seen. So it seems to me the container is downsized because the image is bigger than the border becomes.


Reply to this email directly or view it on GitHub: https://github.com/jackmoore/colorbox/issues/210

Jack Moore jacklmoore.com twitter.com/jacklmoore

jackmoore avatar May 22 '12 18:05 jackmoore

Well I checked your examples and the issue cannot be reproduced in those. So you're right, I might have some CSS issue. Anyway I fixed it in my case and sorry for not checking the issue in your examples before posting it here.

Anyway very nice job on the plugin! Well done!

laszlo-horvath avatar May 23 '12 08:05 laszlo-horvath

interesting - i have the same issue on my project... even downgraded jquery to see if it would help - but it didnt. i see this in IE9, FF15, and Chrome. i dont see any CSS rules being cancelled out, via Firebug.

kneidels avatar Sep 14 '12 00:09 kneidels

It doesn't have to be something canceled out, because colorbox's css doesn't control for all possible styles. It could be a style accidentally applied to colorbox (such as adding a margin to all divs). It could be a css issue, or invalid html, or lack of a doctype. It's hard to say without looking at specific markup/css.

jackmoore avatar Sep 14 '12 00:09 jackmoore

i hear you. its definitely something in my code, because if i cancel my stylesheets - colorbox displays perfectly.

here is my link: http://brands-etc.net/our-clients/ scroll a few icons to the right till you see one "trusteer" - click on that.

kneidels avatar Sep 14 '12 00:09 kneidels

I visited your page, and removing jQuery tools resolved the issue. jQuery tools is including a version of jQuery (1.4.2), which is overwriting the jQuery 1.7.1 you previously included. The current version of colorbox works with jQuery 1.4.3+.

jackmoore avatar Sep 14 '12 01:09 jackmoore

Wow - amazing. Thanks for the quick response, and solution... and the script which i use often!

kneidels avatar Sep 14 '12 01:09 kneidels