fancyapps / fancybox

jQuery lightbox script for displaying images, videos and more. Touch enabled, responsive and fully customizable.
http://fancyapps.com/
7.29k stars 1.79k forks source link

how do I force the close button of the popup to be "fixed" in position #2645

Open halukkaramete opened 2 years ago

halukkaramete commented 2 years ago

When you have long text, users scroll down naturally and this causes the X/Close button to also scroll away. Is there a way to keep it fixed so the users can always see that close option?

Screen Shot 2022-04-09 at 6 48 12 AM

I tried this but did not work:

.fancybox-slide--html .fancybox-close-small {
    color: currentColor;
    padding: 10px;
    right: 0;
    top: 0;
    **position: fixed/static/etc;**
}
Screen Shot 2022-04-09 at 6 54 15 AM
fancyapps commented 2 years ago

Hi,

You could simply make inner wrapping element and make it scrollable instead of the main element.

halukkaramete commented 2 years ago

Clever work around. Thank you Janis.