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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T00:07:12+00:00 2026-05-31T00:07:12+00:00

I would like to scale an iframe on mobile safari . I am including

  • 0

I would like to scale an iframe on mobile safari.

I am including an iframe inside a div.

<html>
<body>
    <div id="iframe_container">
        <iframe src="http://jsfiddle.net/viebel/kTzDS/show" style="width:300px;height:300px;"/>
    </div>
</body>
</html>

Now I am scaling the div with this code:

$(function() {
    $('#iframe_container').css({
        '-webkit-transform': 'scale(0.7)',
        '-webkit-transform-origin': '0 0 '
    });
});​

On iOS/Safari, the iframe is cut (i.e. can’t be entirely seen) while on desktop/chrome, the iframe is not cut.

Here is a jsfiddle page with the code: http://jsfiddle.net/viebel/tJQUH/

Just to clarify: here is a demo page that demonstrates the real problem – when opened on iPad/iPhone Safari – all the three lines should be of the same size: http://jsfiddle.net/viebel/tJQUH/show

Please advice what can I do to see the iframe on Mobile Safari completely uncut?

  • 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-31T00:07:13+00:00Added an answer on May 31, 2026 at 12:07 am

    I have made few changes.Especially make the frame-size as 100%. Then try to scale the iframe itself.Check this out

                <!DOCTYPE html>
                <html>
                <head>
                  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
                  <title> - jsFiddle demo by viebel</title>
    
                  <script type='text/javascript' src='http://code.jquery.com/jquery-1.7.1.js'></script>
    
                  <link rel="stylesheet" type="text/css" href="/css/normalize.css">
                  <link rel="stylesheet" type="text/css" href="/css/result-light.css">
    
                  <style type='text/css'>
    
                  </style>
                  <script>
                  $(document).ready(function()
                  {
                    //alert('hai');
                    $('#ifd').css({
                        '-webkit-transform': 'scale(1.1)',
                        '-webkit-transform-origin': '0 0',
                        'width': '100%',
                        'height': '100%'
                    });
                  });
    
                  </script>
                </head>
                <body>
                    <div id="iframe_container" style="width:500px;height:400px;border:1px solid black;">
                        <iframe src="http://jsfiddle.net/viebel/kTzDS/show" id="ifd" />
                    </div>
                </body>
    
                </html>
    

    Link to jsfiddle:
    http://jsfiddle.net/viebel/tJQUH/13

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

Sidebar

Related Questions

On iOS (iPad/iPhone), I would like to apply some css transformation (rotate/scale) on html
I would like to use the CSS3 property transform:scale. div { transform: scale(0.5,0.5); }
I would like to do some functionality like this app for iphone: http://www.ezraschartbooks.com/Site/Home.html I
I would like to build some smaller scale but hightly customized documentation sites for
I would like to know, in a practical sense, on a large scale (Java
I would like to ask a question about a new and large scale web
i would like to scale a text in svg. If i use the font
I have an image that I would like to scale to full screen. How
I would like to have some kind of pulse animation (infinite loop scale in
I would like to disregard web applications here, because to scale them horizontally, ie

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.