As I work on building a website for my company, I encountered an issue where certain divs overlap when the page is resized smaller. I am looking for a solution to dynamically adjust the CSS using JavaScript based on the width of the page.
Despite attempting the following CSS script without success:
display: flex; flex-wrap: wrap;
My question is, how can I make the text block shift upwards when the page width is below 1840px?