S. Hesam
S. Hesam

Reputation: 6603

Manipulation the zoom property in CSS3

I want my React app will be seen as the same as when a user changes the zoom level to 90%. I tried that issue with CSS

body { transform: scale(0.9); }

but in this way, the screen is not similar to zoom level changes. I tried applying my desire size by meta tag, but it wasn't successful.

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

Upvotes: 1

Views: 508

Answers (1)

psycho developer
psycho developer

Reputation: 242

use the css zoom property to set your default zoom value. Here's the css demo code.

#my{
zoom: 100%;
}

Upvotes: 1

Related Questions