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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:54:29+00:00 2026-06-08T08:54:29+00:00

I have two div elements, one is the left panel, that is hidden, and

  • 0

I have two div elements, one is the left panel, that is hidden, and collapse/expand accordingly it’s needed. In the right I have another div that has to be pushed containing an iframe, this iframe hast to fill all the screen or remaining of the screen. Right now the left div is pushing my right div down.

Here is the code that I have, the red border represents my left panel (collapse/expand). And the one with the iframe represents the right.

Can you help me please, so the left panel pushes the other panel horizontally and the right panel adjust to fit the window accordingly.

  • 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-08T08:54:31+00:00Added an answer on June 8, 2026 at 8:54 am

    First I don’t think widow width dependent scripts are the best to fiddle out.

    Second, avoid CSS height:100% like the plague… it doesn’t work well, you could pass window.height() into a variable and set them with jQuery.

    Third, you might want to target the iframe as well as the outer div.

    http://jsfiddle.net/eteich/cZjMR/8/

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

Sidebar

Related Questions

I have two elements in a div element. One is styled to float left
I have two div -elements, the top one has the height of 40% and
I have two div elements that are twins (i.e. their dimensions and contents are
I have two div in my website page one beside the other(one left and
How to wrap one div around another? I have following two div ids: #course
Hi I have some elements like these: <div id=one>content</div> <div id=two>content</div> and a corrispondent
I have two divs within a container. One floats left and one floats right.
I have two different div elements on two different webpages that use two different
I have two div's one has textbox in it and other just plain text.
The scenario is I have two div s: one is where I select items

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.