SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Jan 2007
    Location
    Central Coast, Australia
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Media query not working with Android Firefox/Chrome

    My website works fine using Dolphin and the default browser on both an Android tablet and smartphone, but Chrome and Firefox act up. Firefox on the smartphone, for example, extends off the screen as if it's showing the desktop version, while Chrome has magnified the page, yet confined it to a narrow vertical strip.

    I'm using media queries to determine screen sizes, and they obviously work or Dolphin and the default browser would fail as well.

    Any thoughts?

  2. #2
    padawan silver trophybronze trophy markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,095
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    We'll need a link to your site or all of the html / css to be able to help.

    Have you included the viewport meta to prevent zoom? e.g.
    HTML Code:
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

  3. #3
    SitePoint Member
    Join Date
    Jan 2007
    Location
    Central Coast, Australia
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up

    I did have the viewpoint meta, but... 'initial' was misspelt (the perils of cut and paste) and I had 'minimum-scale=1.0", which may or may not have been a factor as well (I've removed it anyway).

    The problem is now resolved. Many thanks for your help.


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •