Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8014837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T20:04:09+00:00 2026-06-04T20:04:09+00:00

I am using a jQuery plugin called Reveal . It just shows a div

  • 0

I am using a jQuery plugin called Reveal. It just shows a div like a pop-up when you click a link with specific class.

In my website I am using this for showing comments. The problem is that when the content of div is a lot, the opened div pushes the bottom of page.

enter image description here

Is there a jQuery or Css way to make unwanted space be gone after comment div is closed ?

Edit 1: This is the closing animation code:

modalBG.delay(options.animationspeed).fadeOut(options.animationspeed);
                        modal.animate({
                            "top":  $(document).scrollTop()-topOffset + 'px',
                            "opacity" : 0
                        }, options.animationspeed/2, function() {
                            modal.css({'top':topMeasure, 'opacity' : 1, 'visibility' : 'hidden'});
                            unlockModal();
                        });

Edit 2: If I use scrolling, this is what happens:

normal : http://jsfiddle.net/K4E3g/1/

scrolling : http://jsfiddle.net/K4E3g/2/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T20:04:10+00:00Added an answer on June 4, 2026 at 8:04 pm

    Edited

    The plugin uses visibility: hidden / visible to show and hide a modal extensively throughout its code. This means that any modal in its closed state is set to visibility: hidden, which has the effect that, if the modal is larger than the page, making the page longer than it should be, as elements with visibility: hidden still take up space on the page.

    You can either try changing all the visiblity: hidden to display: none and visibility: visible to display: block in the plugin itself and see if that gets you the desired result, however I have not tested this and there may be undesirable side effects.

    Alternatively, I would suggest looking at a different modal plugin such as Eric Martin’s excellent Simple Modal plugin.

    I hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am using a jquery plugin called fcbkcomplete which shows up fine in chrome
im using a jQuery plugin called Textualizer and i would like to add data
I am using a jquery plugin from [ FilamentGroup ] called DateRangePicker. I have
I'm using jQuery autocomplete plugin from jQuery website calling the controller url which return
I'm using a jQuery plugin called Tablesorter to do client-side sorting of a log
I am using a jquery plugin called masonry. In IE & firefox, the site
I have been using a jquery plugin called uploadify for handling file uploads as
I am using this new jQuery plugin called jsTree www.jstree.com and using the HTML
I'm using the jQuery plugin that generates interactive tables called jqGrid . I want
I'm using the jQuery plugin called tableFilter . It works beautifully in Firefox but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.