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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:44:21+00:00 2026-05-26T02:44:21+00:00

I have a mobile site that includes a search box at the bottom. I

  • 0

I have a mobile site that includes a search box at the bottom. I also use media queries to hide content in portrait mode and display it in landscape mode.

However in Android devices when I click on the search field the keyboard opens then immediately closes, making it impossible to type in the box.

This is not a problem in iOS.

The page can be viewed here – http://so.ajcw.com/android-keyboard.htm and here is the full page code:

<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-type" content="text/html; charset=UTF-8">
    <title>Erroring search field</title>

    <style>     
    .address { display: none; }

    @media only screen and (orientation: landscape) { 
        .address { display: block; }
    } 
    </style>

</head><body>

<h3>Venue 1</h3>
<p>Cuisine</p>
<p>Price</p>
<p>Rating</p>
<p class="address">Address</p>

<h3>Venue 2</h3>
<p>Cuisine</p>
<p>Price</p>
<p>Rating</p>
<p class="address">Address</p>

<form><input type="text"></form>

</body></html>

Thing’s I’ve tried

  • If I have only one venue or if I move the search up the page the
    problem goes away (this isn’t a solution, just an observation).

  • I have tried changing the DOCTYPE – an HTML5 doctype slightly changes
    the functionality in that the keyboard remains after the second
    click, but again it doesn’t fix the issue.

*edit*

  • This does seem to be browser specific. An old Android phone does not have the problem, nor it seems does my Android’s (HTC Desire) default browser, but it does happen in Dolphin HD.
  • 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-26T02:44:22+00:00Added an answer on May 26, 2026 at 2:44 am

    Using Adam’s research the issue is solved by avoiding using orientation. The solution that works for me is taken from this CSS3 ‘boilerplate’, and uses min and max widths like so:

    @media only screen and (max-width: 320px) {
       .address { display: none; }
    }
    
    @media only screen and (min-width: 321px) { 
        .address { display: block; }
    }
    

    This can be seen in action here – http://so.ajcw.com/android-keyboard-solved.htm (http://goo.gl/nNIm9)

    However this solution is not ideal as using fixed dimensions will eventually break as devices resolutions change.

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

Sidebar

Related Questions

Has anyone ran into this issue? We have a mobile site that can't use
I have a simple jquery mobile site that includes a few buttons and a
I am developing a site for mob using jquery mobile. I have a content
I have a mobile version of my site that I have an issue with.
I have read some web site that captcha is not needed in mobile application.
I have a form on my jQuery Mobile site that I would like to
We have a special mobile version of our site that we would like to
i have a page for a small mobile site that has an image that
Throughout a jQuery mobile site I am working on I have anchor tags that
We have a mobile web site that requires users to enter a specific time

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.