Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

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

Open
halukkaramete opened this issue Apr 9, 2022 · 2 comments

Comments

@halukkaramete
Copy link

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
Copy link
Owner

Hi,

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

@halukkaramete
Copy link
Author

Clever work around. Thank you Janis.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants