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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:59:47+00:00 2026-06-17T23:59:47+00:00

I am developing a simple content slider. However the container is not expanding as

  • 0

I am developing a simple content slider. However the container is not expanding as new content slides in. I assume this is because the position is set to absolute for the content items. However if they’re not absolutely positioned then the content items do not line up properly.

My question therefore is: How do I get the container (#triv_cont) to expand as the next content item slides in? If the solution is to not absolutely position the content items, then how do I get the content items to line up? I have tried vertical-align:top with no luck.

The test code is here -> http://codepen.io/lukeocom/pen/mHyBv

CSS selector for content items is:

#promos .trivia #triv_cont div

and the container is:

#promos .trivia #triv_cont

I have reviewed a few questions regarding this but cant seem to find the solution…

  • 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-17T23:59:48+00:00Added an answer on June 17, 2026 at 11:59 pm

    I solved this problem by setting the height of the container to the height of the next content item when the next button is pressed.

    thisHeight = $('#' + selx).height() + 20;
    

    and then

    $('#triv_cont').animate({height: (thisHeight + 'px')}, 1000, 'swing');
    

    easy…

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

Sidebar

Related Questions

I'm new to android developing, so i apologise if this is a simple/noob-ish question,
I am not just a newbie with Javascript. I am developing a simple site
I'm developing a scripting extension, similar to Greasemonkey or Chrome's content-script engine. This extension
I'm getting ready to start developing web content (simple web pages, heavy duty web
I'm developing a simple app that will allow users to upload their content. I
Hello I'm developing a simple application where the user can change a content in
Im currently developing this site so none of the content on there is actually
Im currently developing this site so none of the content on there is actually
I am currently developing a very simple website in Orchard, which however required me
I'm developing simple CUDA app. I followed steps given on http://www.ademiller.com/blogs/tech/2010/10/visual-studio-2010-adding-intellisense-support-for-cuda-c/ but still there

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.