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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:48:56+00:00 2026-06-02T19:48:56+00:00

On a page of my web app I include an iframe. The iframe typically

  • 0

On a page of my web app I include an iframe. The iframe typically has a pretty hefty height – let’s say on the order of 1500px. What ends up happening, naturally, is that the window now has two vertical scroll bars and the scroll wheel scrolls one or the other depending on the position of the cursor. This can make for a slightly awkward experience at first.

What I simply want to do is “flatten” the iframe. I’d like it to stretch it to be the full height of it’s contents, so that there is no need for a scroll wheel on it, and so that there will only be one vertical scroll wheel for the whole page. Can such a solution be done with only HTML+CSS, or will some javascript [w/jquery] be required?

Thanks in advance.

  • 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-02T19:48:58+00:00Added an answer on June 2, 2026 at 7:48 pm

    I do not believe this to be possible with CSS alone, but fairly simple with jQuery

    var iframe = $("#my_iframe");
    var iframeContents = iframe.contents()
    iframe.css({
        height: iframeContents.outerHeight(),
        width: iframeContents.outerWidth()
    });
    

    working jsfiddle: http://jsfiddle.net/MUQ8V/3/

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

Sidebar

Related Questions

I have a user profile page on my web app which has contact information.
I'm developing a dynamic data web app. On list.aspx page it has GridViewPager control
I set up my web app as follows: <error-page> <exception-type>javax.faces.application.ViewExpiredException</exception-type> <location>/WEB-INF/include/viewExpired.html</location> </error-page> so that
I have a simple web app: a web page with a form to submit,
Im making an 'app like' web page. The actual page is wider than the
I use sitemesh for page decoration in my web app. I have a form
I'm making a web-app with PhoneGap. Here's my current hurdle: On page one, the
I'm making a mobile web app. At the top of the page, I have
I have a SQL interface page in my classic ASP web app that allows
I have a asp.net/c# web app. When do user leave a certain page, I

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.