I am currently facing an issue with the resizing of my web page when the user changes the window size or has a different screen resolution. I have created a jQuery function that triggers on resize or page load, which helps in scaling everything proportionally. Here is the code snippet:
theWindow.resize(function() {
resizeBg();
}).trigger("resize");
However, as I continue to add more content to the page, manually resizing every element such as padding, margin, font-size, width, and height based on the aspect ratio becomes increasingly tedious. I am wondering if there is a jQuery plugin or any other suggestion that can simplify this process.
Any help or guidance on this matter would be greatly appreciated. Thank you.