I encountered a problem where the screen resolution on my laptop and PC is the same, 1920x1080, but in Windows there is a setting called 'Change the size of text, apps, and other items.' On my PC, it is set to 100%, while on the laptop, it's set to 125%. Is there a way to set a parameter in CSS so that when a user enters with 125%, the browser will zoom out the webpage by 25%? I would greatly appreciate any help. Below is a test component where the text sizes are different on the laptop and PC
SCSS:
$sizeImg: 75%;
.test {
@apply w-screen h-screen flex;
.cover {
@apply w-[50%] relative flex justify-end items-center;
&:before {
content: '';
@apply bg-slate-400 absolute;
width: calc(100% - #{$sizeImg} / 2);
height: 100%;
left: 0;
}
}
.text {
@apply w-full bg-slate-600;
}
}
Component:
import React, { useState } from 'react'
import './Test.scss';
import image from '../../assets/images/MainPhoto.png'
function Test() {
return (
<div className='test'>
<div className="cover">
<p>text</p>
</div>
<div className="text"></div>
</div>
)
}
export default Test;