Design comparison
Solution retrospective
Hi!
I still don't know how to build my page responsively, applying it to the code I wrote. can someone help me?
Thank you!
Community feedback
- @RocTanweerPosted over 3 years ago
Hello π Isabela, For responsiveness, you could do something like this...
h1{ color : blue; } @media {max-width : 768px} { h1{ color : red; } }
this code says that the color of h1 is blue but when the size of screen is below or at 768px the color of h1 is red.
like h1, you can change the property of any element at certain width...this is called responsiveness. Remember to use relative units like rem And avoid using px.
Hope it helps βΊοΈ
1@RocTanweerPosted over 3 years ago@RocTanweer One more thing...
max-width : 768px mean...for screen width 768px or less.
You may also use min-width...
min-width : 768px implies for screen width 768px or more.
0@isabelalimsPosted over 3 years ago@RocTanweer Hi! Thanks for your explanation, it helped me a lot! I'm gonna study more about responsive design, this is getting in the way of creating better pages.
0
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