Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subtract elementheight from modal #11

Closed
janstieler opened this issue May 4, 2015 · 5 comments
Closed

Subtract elementheight from modal #11

janstieler opened this issue May 4, 2015 · 5 comments

Comments

@janstieler
Copy link

Hello,
how can I subtract an elementheight from the modal?

Kind regards.

@chinchang
Copy link
Owner

Please explain a bit more. Not able to understand your question.

@janstieler
Copy link
Author

Hi,
if I have an headerbar like the Bootstrap navbar and a cta-modal is open it will be invisible.
Also you don't have the possibility to see a menu.
It will be great if I can subtract the height of the navbar from the modalposition.

Hopeful this explain is more understandable :).

@TiagoGoddard
Copy link

I think he meant he wants the Bootstrap navbar to keep showing when the cta-modal is opened.

@janstieler
Copy link
Author

Hi,
of course this is the result what I want. But I don't want to realize this with setting the navbar only on position fixed or an higher z-index. I need a calculation solution.

@chinchang
Copy link
Owner

@janstieler Your requirement is very independent of cta.js. The library itself just transitions one element to other. Its upto you to style the source and destination elements. In your case, you need to make your modal so that it starts not from very top, but after some spacing to let the header show up (probably using top: header_height_here). Again note that, the modal in the demo, is not part of cta.js. It there for explaining possibilities with the library.

Closing this issue.

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

No branches or pull requests

3 participants