Design comparison
Solution retrospective
I feel more comfortable seeing the designs and knowing how I can fix them.
What challenges did you encounter, and how did you overcome them?I had a small problem when making the list of social links, I completely forgot the "a" tags, I must reinforce HTML semantics.
What specific areas of your project would you like help with?i would like someone to help me to know how i can make my projects more responsive, if you play with the size of the screen you will notice that it has a static width, and if you make it smaller than that size you lose the project. so if you could tell me how to make the sizes of the cards adapt to the size of the screens, i know that i should use media query.
Community feedback
- @kodan96Posted 6 months ago
hi there! ๐๐
-
your element has a static width, because you've applied
height
andwidth
to it. when you do this you throw responsiveness out the window. it's better practice to let the child elements set theheight
andwidth
of their parent, since by default the parent adapts to the child elements overall size. -
if you still want to control your elements dimensions you can use relative units with the combination of the
max-width
property:
.your-element { width: 90%; max-width: 400px; }
like this your element will take up 90% of the parent's width, but it will stop at 400px and won't expand above that.
- you used
position: absolute;
andtransform: translate;
to center your content. it's better to useFlexbox
for this. You can do it if you apply these to yourbody
tag:
body { min-height: 100vh; display: flex; justify-content: center; align-items: center; }
Hope this helped ๐
Good luck and happy coding! ๐ช
Marked as helpful2@LuisMariscalDevPosted 6 months agoThank you very much for the advice, I will start applying it to the projects, thank you. @kodan96
1@LuisMariscalDevPosted 6 months agoThank you very much for the advice, I will start applying it to the projects, thank you. @kodan96
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