TuskCode
  • Home
  • Raffle Play Woo
    • Raffle Play Woo – Premium
    • Raffle Play Woo – Free
  • Sendy Woo Checkout
    • Sendy Woo – Free
    • Sendy Woo – Premium
  • WP Bing Map Pro
  • Contact
Select Page

Meta tag – viewport for mobile devices

Nov 24, 2018 | HTML5, Tips & Tricks

meta-tag-viewport image

<meta name="viewport" content="width=device-width, initial-scale=1.0">

If you want your website to be displayed correctly on a mobile or tablet device you need to use the ‘viewport’ metadata in your html file. The content width can be set to different values like content="width=320px".

Initial scale property controls the zoom level of the screen when first loaded. Eg: you could have a different zoom when first loaded initial-scale=0.8

Many mobile devices increase the text size in order to be more readable, therefore the text will be made bigger than initially styled. To have your initial size of text kept over the mobile devices browsers use: text-size-adjust: 100%;

Not all the browsers support this style so please check the compatibility on https://developer.mozilla.org/en-US/docs/Web/CSS/text-size-adjust

 

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.Accept Read More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT