Today I have done one small step in my WordPress theme. I want to show you simple popup page with jQuery. But first of all my popup has few requirements.
- Popup should have variable height.
- Content under popup layer not suppose to move.
- After closing popup user should go back to the same point where he had opened popup.
How it works
- Hiding scroll of <body>.
- Using scroll of #page for all content.
- #modal-border and #page using with fixed position.