@josifermaodev
Posted
Congratulations, your project is very good!
To help you with this, using Devtools is very important, because with it you can select the desired screen size and make the test changes to it, which you can then apply to your code.
Another important tool is to use relative proportion units
You can make this design responsive without using media queries by using a few different approaches. Here are a few techniques that can help:
1. Flexbox and Grid Layout:
Both are great tools for creating flexible layouts that automatically adjust to the screen size.
2. Relative Units:
Using relative units like em
, rem
, vw
, and vh
can make your design more adaptable to different screen sizes.
em
and rem
: Proportional to the font size of the element or root.
vw
and vh
: Proportional to the width and height of the viewport.
3. CSS Functions:
CSS functions like calc()
, min()
, max()
, and clamp()
help you create dynamic values that adjust to the context.
4. Aspect Ratio:
Maintaining the aspect ratio of elements can help you create designs that automatically adjust.
5. CSS Custom Properties (Variables)
Using CSS variables allows you to dynamically adjust your design based on global variables.
These techniques can help make your design more flexible and adaptable to different screen sizes without relying solely on media queries.
Hope this helps you!
If you have any further questions or concerns, I will be happy to answer them.
Marked as helpful