Thinking of The 'Zoom' in Responsive Design

Thinking of the 'zoom' in responsive design

In general, a responsive layout shouldn't need to be zoomed because it fits the device/browser window and has been designed to be "finger-friendly". To help with that, you can use this viewport to stop users from zooming:

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

How to make sure a website is still responsive when zoomed out?

You have to add meta tag in head.

<head>    
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>

How to set an responsive image with zoom in?

In this situation you can use css3 property.

Example:

.logo {
-webkit-transform: scale(1.5);
transform: scale(1.5); /* you can change the value also */
-webkit-transform-origin: center;
transform-origin: center;
}

Use this code for mobile device view port..



Related Topics



Leave a reply



Submit