Design comparison
Solution retrospective
I'm proud of the final result of this first project as I am still very new to web development and it feels great to be able to complete a challenge!
What challenges did you encounter, and how did you overcome them?It took me a few tries to get the easiest HTML in place and I defo had to crack my head a bit with centering items and creating padding.
What specific areas of your project would you like help with?Right now i am not very confident with the responsiveness of the web pages. It is not very clear which values should i put into the @media brackets? Will keep working on it and practicing!
Community feedback
- @josifermaodevPosted 3 months ago
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
, andvh
can make your design more adaptable to different screen sizes.em
andrem
: Proportional to the font size of the element or root.vw
andvh
: Proportional to the width and height of the viewport.3. CSS Functions:
CSS functions like
calc()
,min()
,max()
, andclamp()
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 helpful0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord