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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:16:25+00:00 2026-05-27T00:16:25+00:00

I have the following structure of my HTML document: <div id=slideshow></div> <div id=content></div> $(‘#slideshow’).css({

  • 0

I have the following structure of my HTML document:

<div id="slideshow"></div>
<div id="content"></div>

$('#slideshow').css({
   'height' : $('#content').innerHeight()+'px'
})

The #slideshow div is positioned absolute with a lower z-index and the #content div is positioned relatively with height set to auto.

Question: How do I ensure that the height of slideshow is also set to auto and according tho the height of the content?

I even tried jQuery .innerheight() property with no luck.

  • 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-27T00:16:26+00:00Added an answer on May 27, 2026 at 12:16 am

    If your content can be resized dinamically (for example by adding new content, or dragging a textarea in browsers such as Chrome), you should include the jquery resize plugin, and a callback that fires whenever your content div is resized.

    If the only way your content can be resized is in a window resize, you dont need to include jquery resize, and then you should bind the resize event to the window object $(window).resize(….);

    If your content cant be resized in any way, then just calling to the updateSize() method will do. You can check it in the following link, but I suggest you to check it in Chrome and resize the textarea so you can test how the slideshow box is also updated.

    http://jsfiddle.net/qFE6b/2/

    var updateSize = function(){
        $('#slideshow').height( $('#content').height()  );     
    };
    
    $("#content").resize(updateSize);
    
    
    updateSize ();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have following HTML structure: <div class=container> <div class=sidebar></div> <div class=content></div> <div class=subscript></div> </div>
I have following structure of an HTML document: <body> <div class=main> <div class=left></div> <div
I have the following html structure <div id=content> <div id=transport> <div id=header>Header Text</div> <div
I have the following HTML structure: $('#subgroup a').nextUntil('h3').wrapAll('<div></div>'); <script src=https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js></script> <div id=subgroup> <h3>Group name
I have the following HTML node structure: <div id=foo> <div id=bar></div> <div id=baz> <div
I have a html structure like this : <div id=nav_holder style=position:absolute;border-radius:400px;width:0px;height:0px;background-color:#460203;z-index:350px;> <div id=inner_wrap> </div>
i have following html structure. <p class=expandableContent ><span class=label>Computer and Laptop Repairs</span></p> <div style=clear:
I have the following structure in my document: <div id=clientList> <a href=whatever.php att=something>Text</a> <a
I have the following structure. <div> <p>Hello World !!</p> </div> <iframe id="myiframe" src='myiframeContent.html'></iframe> and
I have to create the following type of HTML structure: <div id=dcontent> <ul class=thm>

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.