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

  • Home
  • SEARCH
  • 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 7995533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:26:34+00:00 2026-06-04T14:26:34+00:00

I am writing an app with jQuery Mobile that will act as a preview

  • 0

I am writing an app with jQuery Mobile that will act as a preview of a native mobile app, inside a browser.

I am intending to place the webapp in an iframe that will be like a small smartphone simulation. The legibility of the text is not important, only the colors, images and the overall look-and-feel.

The problem is that the in our website the preview area is small (height="330" width="220") and everything appears cramped (the text, buttons, etc have normal size but appear big compared to the iframe dimensions).

I tried to apply font-size: 50%; or width: 220px; height: 330px; in the body of the mobile app but no luck. Also the meta viewport didn’t help.

My iframe is something like this:

<iframe id="webapp" frameborder="0" height="330" width="220"
  src="http://jquerymobile.com/demos/1.1.0/">​

I need to make the JQM webapp smaller or “zoomed out”, but could not find a good 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-04T14:26:35+00:00Added an answer on June 4, 2026 at 2:26 pm

    After some stubborn research I found an elegant way to shrink the webapp inside the iframe. By using CSS3 2D transforms:

    transform:scale(0.5,0.5);
    -ms-transform:scale(0.5,0.5); /* IE 9 */
    -moz-transform:scale(0.5,0.5); /* Firefox */
    -webkit-transform:scale(0.5,0.5); /* Safari and Chrome */
    -o-transform:scale(0.5,0.5); /* Opera */
    

    This style will make the iframe 50% smaller.

    The downside is that only IE9+ is supported, but this is ok as we all hate IE. Right?

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

Sidebar

Related Questions

I am writing mobile app with JQUery Mobile Beta 1 and was expecting that
We're writing a web app that relies on Javascript/jQuery. It involves users filling out
I'm writing a Google Maps app that requests data from the server using jQuery's
I'm diving into writing a mobile app with jQuery Mobile/PhoneGap. I'm using this sample
I am currently writing a small web app using Asp.net MVC and jQuery mobile.
I'm writing jQuery for an app that's being build in JSF. The JSF components
I'm currently writing a mobile app (hopefully iOS or android) using the jquery mobile
I'm writing an iPhone app using jQuery mobile & phonegap. When I rotate my
I'm writing a jQuery app that interfaces with a node.js server, so I'd like
I'm writing an app that loads in content via ajax using the jQuery.load function.

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.