I'm not deeply into web development, so I hope this question makes sense. I've worked with native HTML, CSS, JS, React, Next.js, and Struts, but I always struggle with making my designs mobile-friendly. Whenever I focus on mobile designs, the desktop versions end up looking terrible, and the opposite is also true. For instance, my personal portfolio built with React and React Three Fiber looks good on desktop but completely messes up on smaller screens, to the point that I've had to block mobile access until I create a mobile version. Is there a framework that can detect when elements are cut off on smaller screens and automatically adjust them? If not, how challenging would it be to create such a tool that manages mobile responsiveness without constantly tweaking media queries?
5 Answers
While some tools out there aim to automate responsive design, it’s tough to create a one-size-fits-all solution. Design intents vary greatly between projects; what looks good on one site might not work on another. I personally favor using tools like Gamma, which adjusts layouts based on device sizes, but for custom apps, the manual approach tends to provide better results.
Honestly, I get why you’d want a tool that manages everything automatically. However, the subjectivity of design makes it tricky. People often prioritize different aspects based on the type of content they have. A better approach is to focus on your content first and then apply designs around it, rather than forcing content into a pre-made structure.
Do you have mobile-friendly breakpoints configured? Setting them up can help you manage layouts more effectively across devices. Many component libraries are also designed to support responsive layouts out of the box, which could make your life easier.
Your portfolio issue sounds like a common design problem. If your design only caters to specific screen sizes like 1728-1920, it won’t look good on smaller or larger screens. A solution could be to ensure your designs are adaptable to multiple sizes instead of being restricted to a certain range.
First off, you should get a solid grasp of how layouts work in browsers. There are three main modes: flow, flex, and grid. The default mode is flow, which lets elements stack vertically. Using flex can help with one-dimensional layouts, while grid is great for two-dimensional designs. For mobile-first design, start with a simple layout and add complexity with media queries. This keeps your CSS cleaner and makes it easier to manage layouts for different screen sizes.

Related Questions
How to Build a Custom GPT Journalist That Posts Directly to WordPress
Cloudflare Origin SSL Certificate Setup Guide
How To Effectively Monetize A Site With Ads