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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T04:42:50+00:00 2026-06-02T04:42:50+00:00

Trying to write html help files that get included with our app on iOS.

  • 0

Trying to write html help files that get included with our app on iOS.

For the iPad version, I want the help files to display a smallish graphic (about
156×204).
For iPhone / iPod, I don’t want to have the graphic displayed.

Other than using javascript like the following in the file h_login.html:

if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
location.replace("h_small_login.html");

which requires a clone of each file, I haven’t found a method.

Would prefer to stay using minimal HTML … vanilla, no CSS, a single “meta” at the
start to specify:
meta name=”viewport” content=”width=device-width; initial-scale=1.5; maximum-scale=4.0; user-scalable=1;”

thanks!
Stan

  • 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-02T04:42:53+00:00Added an answer on June 2, 2026 at 4:42 am

    By far the easiest way is with a media query. I’m fairly sure i-Devices support this feature of CSS:

    @media screen and (max-device-width: 600px) {
       img.hide {display:none;}
    }
    

    Just add class="hide" to the relevant images, and adjust the 600px (I don’t know what the resolution of iPhone and iPad are, but just change the 600 to anything in between the two).

    It is far easier to do this than to try and get JavaScript to do the same thing.

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

Sidebar

Related Questions

I hope somebody can help me. I've been trying to write a custom html
I am trying to write a simple HTML 5 app for Windows Phone 7/7.5.
I'm trying to write a regular expression for html code that looks like this:
I'm trying to write a class that will return a string of HTML with
I'm trying to write an html/javascript set (to be interpreted in PHP) that allows
I'm trying to write an XSLT that organizes an HTML file into different section
I am trying to emulate the multiple upload files in html form that looks
I'm trying to write a script that will search through a html file and
I am trying to write a regular expression to strip all HTML with the
I am trying to write a RegEx rule to find all a href HTML

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.