I would like to change the scale of my website to 0.7 or similar depending on the width of the device used.
The only helpful information I could find so far is the following <meta> tag:
<meta name="viewport" content="width=device-width, initial-scale=1.0"> I was wondering if it is possible to write some code like the below one to apply a certain scale of the website only if the width of the device matches a certain width or width range:
@media screen and (min-device-width : 320px) and (max-device-width : 480px) { .body { initial-scale: 0.7; } } Or am I talking total non-sense? Sorry, I am new to CSS and HTML and just looking for a quick workaround to decrease the initial-scale on a laptop screen from 1.0 to 0.7.
Your answers will be highly welcomed. Thanks a lot in advance!
Best,
Pascal