I am currently developing a simplified version of Canva, which is a page editor app. The size of my page div is set to A4 with dimensions of 1277px.
While the page looks good on larger screens, it doesn't display properly on smaller screens.
https://i.sstatic.net/cn5be.png
How can I adjust the page to make it visible on smaller screens?
This is my proposed solution:
.page {
transform: perspective(100vh) translateZ(calc(100vh - 1300px));
transform-origin: center top;
}
Although this solution works well, it appears blurry and I prefer to set a maximum height of 1277px for the .page div. Additionally, I am concerned that it may not be supported by older browsers.