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 6587579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:56:06+00:00 2026-05-25T16:56:06+00:00

I am having a minor problem with jQuery slideUp and slideDown when I use

  • 0

I am having a minor problem with jQuery slideUp and slideDown when I use it in a table. I have html like this (also mainly generated by jQuery but it’s not important):

<tr class="expandable-container">
  <td colspan="10">
    <div id="3_expandable" style="display: none;">
      <table class="innerTable">
        ...
      </table>
    </div>
  </td>
</tr>

Style for the outer table:

.main-table {
    border-radius: 0.5em 0.5em 0 0;
    width: 129em;
    background-color: #f1f1f1;    
    margin-top: 1.5em;
    z-index: 10;
    position: relative;
}

.main-table td, .main-table th {
    padding: 1.2em 0.7em;
    border-collapse: collapse;
    border-left: 0.1em solid #dedede;
}

.main-table td:first-child, .main-table th:first-child {
    border-left: 0 solid;
}

.expandable-container td {
    padding: 0 !important;
    background-color: red; /* inserted to identify the problem */
}

Since slideUp and slideDown don’t work on table elements, I wrapped my content (which is another table but it’s not important) in a div, which is of course hidden. When I applied the slideUp and slideDown methods and tested it on Firefox 6, the animation appeared skippy for some reason. So I set a 10 seconds long slide time to examine it and I determined that when the animation begins, The td element appears immediately with height == 20px and the div slides down within it. Then everything goes as expected – when the div exceeds td’s initial unexpected height, it covers it and expands to it’s intended size.

This happens on Firefox 6. It works without any problems on Chrome 13. I didn’t test it on any versions of IE because it isn’t an intended browser so I didn’t have to go through all the trouble with installing it on a linux machine. Not tested on Opera also because now some other script crashes on it which is to be fixed.

I’m attaching a screenshot of the very first moment of slideDown animation – when the td appears out of nowhere (red background).

slideDown - first phase

My question – is there a way or workaround to fix it?

As Ariel suggested, I added it as jsFiddle. Oddly though, it works well there, even on FF6:
jsFiddle rendition

EDIT: I fixed the issue which caused the crash on Opera 11 so I was able to test it. So – it happens also on Opera 11.

  • 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-05-25T16:56:07+00:00Added an answer on May 25, 2026 at 4:56 pm

    Based on the fiddle, and your symptoms I think it’s something to do with padding or margins (probably margins). i.e. as soon as the element is visible it has a margin which is not included in the height animation.

    But, I can’t really answer for sure since I don’t see it happening. (You should probably try to figure out what’s different in the fiddle vs your actual code – try commenting out sections of css.)

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

Sidebar

Related Questions

I'm having the following problem. Imagine my mySQL table looks like this: id range
I have a minor CSS problem, but I'm having trouble fixing it because I
I am having a minor problem with WCF service proxies where the message contains
I have a minor problem guys which I need some help. I have a
This is a particularly annoying problem I'm having, and I can't be the only
I am having two minor problems in this code but i am unable to
Having a minor problem, I'm trying to create an about us dialog box by
been a while since i used flash... the minor problem im having is that,
I have a minor problem where my (new) computer tends to completely freeze up.
Im having this weird problem with creating Json dynamically.... for some reason this doesnt

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.