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

  • SEARCH
  • Home
  • 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 8581777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:08:01+00:00 2026-06-11T21:08:01+00:00

So I have a div that is displayed by default. I’m using a function

  • 0

So I have a div that is displayed by default. I’m using a function to slideUp the element, then change the content, then slideDown back to reveal the new info.

And that’s all working fine.

What’s bothering me is that when the div is animating everything below it follows it up and down.

Basically, it seems like as it’s hiding it’s “display: none” -ing so to speak, meaning it’s being taken out of the flow.
And I want it to be more like “visibility: hidden”.

…if that makes sense (God, I hope it does. It has been a long week. =P)

  • 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-11T21:08:02+00:00Added an answer on June 11, 2026 at 9:08 pm

    Elements slide up to fill gaps when above elements are removed. For HTML, gravity is upward, which is why we build HTML downward(from the top of the browser, down).

    Let’s pretend your object sliding upward is as follows:

    <div class="SlideUpDiv" style="height:500px; display:block;">Hello!</div>
    

    What you need to do is wrap that div in another div that holds the same height:

    <div class="slideUpContainer" style="height:500px; display:block;">
      <div class="slideUpDiv" style="height:500px; display:block;">Hello!</div></div>
    </div>
    

    This way, when the first element crushes, the gap will be held open by the parent div.

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

Sidebar

Related Questions

I have a floating div that gets displayed, and I want it to be
I have a div that expands to the height of it's content. It works
I have a div that will serve as container to other element, I have
I have a speech bubble. I build it using a div for the content.
I have a simple HTML/CSS list that is displayed inline. I am using a
I have a div that has a span inside that will display a message
I have a div that I use to display alerts when needed. If I
I have a javascript that displays a generated text into a div: document.getElementById('phrase').innerHTML =
I have a jquery toggle that animates and displays a DIV. I have a
I have a div that I click on to drag it. Once it's on

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.