
Design comparison
Solution retrospective
I am proud that this web may be open on phones too It is not perfect, but I am still a newbie in responsive web dev I am glad that I have learned how to add fonts directly from files and not from a web And finally, I am quite good at centring elements :)
What challenges did you encounter, and how did you overcome them?Centring img in a card was bit challenging but I've solved it with some web research and a bunch of practice Also I had to find out how to set correct spaces between paragraphs
What specific areas of your project would you like help with?Well, please check and advise if I have correctly positioned all items. Additionally, could you advise regarding responsive design? Best wishes from Poland! :)
Community feedback
- @tortarugaPosted about 2 months ago
Good job! to make even better responsive designs, you can look into media queries, or use relative units like vw so that elements scale according to the viewport's width.
for example, if you want a .card element to be bigger on big screens, you could do something like this:
.card { width: 20rem; } @media screen and (min-width: 600px) { .card { width: 30vw; max-width: 40rem; } }
this ensures that the .card has a width of 20rem on screens smaller than 600px, while for bigger screens the card will have a width of 30% of the viewport's width, and so it will automatically adjust in relation to the screen size, while also ensuring that the card will never be wider than 40rem.
by playing around with different values and combinations you can create a design that looks good on all screens! hope it helped, good luck0
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