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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:28:20+00:00 2026-05-24T16:28:20+00:00

I have a large unordered list, each containing a picture and a title. When

  • 0

I have a large unordered list, each containing a picture and a title. When the title is clicked, a content area reveals itself. By default, all of the content areas are collapsed, so each list item has the same height. You can view a working example here: http://trendsprintmedia.com/templates/

The Jquery is simple:

$(".tempContainer").hide();
$("h2.trigger").click(function(){
    $(this).toggleClass("activeTemp").next().slideToggle(250);
return false; 
});

When you expand the content (by clicking on the title or plus icon), you will see all of the content slide down. This screws up all of the list items below it. The entire list below it becomes unorganized, and..well, ugly. I want to avoid this.

Because each element (li.singleTemp) is the same width, I am looking for a jquery solution that when the title is clicked, just that vertical column of list items slide down, and the rest of the elements stay in place. Any ideas?

Alternatively, if you expand a list, it would be great if the next row would slide down entirely.

  • 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-24T16:28:21+00:00Added an answer on May 24, 2026 at 4:28 pm

    i would give your <div id="templates"> a position of absolute and set the z-index higher than the rest of the elements.

    $("h2.trigger").click(function(){
               $(this).toggleClass("activeTemp").next().slideToggle(250)
                  .parent('div#templates')
                  .css({position: 'absolute', z-index: '3', top: '155'});
        return false; 
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an HTML element with a large collection of unordered lists contained within
In my application I have large area (≈5000x5000pts) and I must allow user to
I have large file comprising ~100,000 lines. Each line corresponds to a cluster and
Suppose you have a really large table, say a few billion unordered rows, and
I have large list of the drop-down menu. Some of the option have very
I have unordered list inside a div. I use it to create buttons in
I have large text files upon which all kinds of operations need to be
I basically have a fixed width DIV with an unordered list inside that overflows
I have large data in two files each with about two million (different) entries.
What is better: to have large code area in lock statement or to have

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.