You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.
When declaring CSS3 box-sizing-border box on all page elements, the close button gets cut off on the first image. Specifically, it seems to cause the .fancybox-wrap container for the first image displayed to have an inline style of overflow: hidden, which cuts off the close button.
Here's the code that causes the issue for fancybox. Put this at the top of your stylesheet:
Ah, that works perfectly, thank you. I was only setting box-sizing: content-box on the wrap and on a handful of divs within the wrap. Using the * selector did the trick. Thanks again!
Had a similar issue ("caption located outside the box") when integrating fancybox v3 with bootstrap 3 that comes along with box-sizing: border-box as a default for all elements.
When declaring CSS3 box-sizing-border box on all page elements, the close button gets cut off on the first image. Specifically, it seems to cause the .fancybox-wrap container for the first image displayed to have an inline style of overflow: hidden, which cuts off the close button.
Here's the code that causes the issue for fancybox. Put this at the top of your stylesheet:
Here's a link to a Fiddle where you can see this occur: http://jsfiddle.net/jonthomas/SxZuR/4/
The text was updated successfully, but these errors were encountered: