Conceptually, viewport is the screen space where the site is rendered. This space determines important items in the layout, such as size of elements and images. With the viewport meta tag you can set the initial size of resolution within the device screen size in use, for example mobile phones, tablets, smartphones and even computers.

The viewport meta tag will allow that a layout designed for larger monitors can be rendered on smaller screens, without incurring a loss of quality or even content for lack of space.


Indicating the size of the viewport, the content is adjusted according to the screen size setted. In this case, the values to be rendered end up being proportional to what was set on the viewport meta tag of the page.




Setting the Viewport Meta Tag


The syntax of the viewport metagtag is very simple to apply:

<meta name=”viewport” content=””>

In the “content” field, the values related to the tag should be included. Each must be configured according to the elements that are being worked on and also according to the different screen sizes in which the site will appear.


Find below the list of values that can be entered in the viewport metagtag:


Width This item sets the width of the viewport to be worked on. The value can be set in pixels or the “device-width” value can be used to be automatically set according to the device width.
Height This item sets the height of the viewport to be worked on. The value can be set in pixels or the value “device-height” can be used to be automatically set according to the device height.
Initial-scale This value defines the initial viewport scale.
User-scalabe Allows the user to use the zoom function. (NO/YES)


Using Scriptcase as a development tool, no need to worry about the screen size of the application user. That’s because all applications created in the tool are fully focused on the mobile version.


Take a test, please visit our form mobile!

By ,

April 27, 2015


You might also like…

5 reasons you can’t miss a Black Friday Scriptcase!

This November we bring you the biggest and most important discounts of the year! And do you know wh...

Taking a look at Scriptcase version 9.7

After the big Scriptcase 9.7 presentation event, we have a new version of Scriptcase for download, ...

October Newsletter

Follow the latest news for the month of October! Webinars, blog posts, videos, and more. WEB...

You might also like…

Get new posts, resources, offers and more each week.

We will use the information you provide to update you about our Newsletter and Special Offers. You can unsubscribe any time you want by clinck in a link in the footer of any email you receive from us, or by contacting us at Learn more about our Privacy Police.