Welcome to TalkGraphics.com
Results 1 to 10 of 26

Threaded View

  1. #1
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,954

    Default Beware the difference between Mobile Screen Resolution & Browser Window Resolution

    Can others confirm this?

    I have an HTC Desire 310 which has a screen resolution of 480 x 854 pixels. I created a test site with the following variants

    Main 960 px
    v1 720 px
    v2 480 px
    v3 240 px

    When viewed on my desktop the break points 360, 600 & 840 worked as expected as I reduced the browser window width.

    However on my HTC, in portrait, instead of viewing the 480 variant it servered up the 240 variant.
    When I rotate to landscape I get the 480 variant, not the 720 variant.

    On non desktops and laptops, there is a large difference between the browser window size and the stated screen resolution.

    This holds equally true on my iPad4.

    I'll attach my test xar file and you can test it on your other devise live here.

    Just watch the Variant Size Header.

    There is a small Javascript in the <head> that displays the browser window resolution in an alert. You need to hit Refresh as you test the portrait/landscape modes.

    Link to live example
    Attached Images Attached Images  
    Attached Files Attached Files
    Egg

    Minis Forum UM780XTX AMD Ryzen7 7840HS with AMD Radeon 780M Graphics + 32 GB Ram + MSI Optix Mag321 Curv monitor
    + 1Tb SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

 

 

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
  •