dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: Avoid validation warnings on meta viewport?

  1. #1
    Join Date
    Jul 2013
    Posts
    118

    Avoid validation warnings on meta viewport?

    Hello

    I am currently using this exact meta viewport to get the correct view on mobile devices. Thing is that this gives me a warning when validating the code: "Consider avoiding viewport values that prevent users from resizing documents."

    What meta viewport is recommended to use?

    HTML Code:
    <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1' name='viewport' />

  2. #2
    Join Date
    Oct 2017
    Location
    Lithuania
    Posts
    43
    Just remove this:

    maximum-scale=1.0

  3. #3
    Join Date
    Jan 2004
    Location
    chertsey, a small town s.w. of london, england.
    Posts
    1,839
    Hi there jag1,

    Quote Originally Posted by jag1 View Post
    "Consider avoiding viewport values that prevent users from resizing documents."
    Well, the little bugger that allows that is "user-scalable=1".

    See how you get on using this...

    Code:
    
    <meta name="viewport" content="width=device-width,height=device-height,initial-scale=1">

    coothead
    ~ the original bald headed old fart ~

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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