When it comes to styling, I find that using 4 specific media queries works best for me.
First is the full-width query:
@media only screen
and (min-width : 1000px), print and (min-width: 1000px) {
Next, the condensed query:
@media only screen
and (min-width : 744px)
and (max-width : 999px) {
Then, the scalable query:
@media only screen
and (max-width : 744px)
and (min-width : 481px) {
Lastly, the mobile query:
@media
only screen and (max-width : 480px),
only screen and (min-device-width : 320px) and (max-device-width : 480px) {
In my setup, I have separate CSS files named full.css, condensed.css, scalable.css, and mobile.css. Additionally, there's a style.css file for default styling across all view sizes.
This approach has proven to be successful and easy to manage on various devices and screens. Once you establish a solid structure, manipulating elements based on different queries becomes straightforward.
Adjusting widths as per these queries can significantly enhance the display of your code on different devices.