
Design comparison
Solution retrospective
I think it turned out pretty good!
What challenges did you encounter, and how did you overcome them?the image border radius wouldn't work on the mobile view and i couldn't figure out why?
What specific areas of your project would you like help with?Any feedback on things i need to improve on my code will be appriceated
Community feedback
- T@PhillipDaumPosted 3 months ago
Nice work Majdi!
-
You could try indenting your code more frequently for increased readability, or if you are using an IDE like VS Code, installing a code formatter like Prettier
-
Font sizing in px is not best practices. Try converting to rem so it can change with screen sizes. I got a great comment on rem and em vs px, recently which was very helpful.
-
My instructors have told me that
<br>
tags tend to be pretty old school and have few use cases these days, and that it is better to handle this sort of stuff with CSS. -
I was able to fix the border radius on phone screen issue by:
- removing
.card img
from the media query - removing the height and width from
.card img
and addingwidth: 100%
, this means it will not go beyond the bounds of the containing element. - adding padding to
.card
I addedpadding: 1.5rem
- This messes up some other stuff, so I removed the 24px margin from most of the elements, which helps.
- Then there was a big gap at the bottom of the card, so I
justify-content: center
from the .card class and removed the hardcoded heights in pixels from .card, and also in the media query. I think the hardcoded heights are what did it. - This does leave the card a little bit short. I’m thinking this could be fixed by adding spacing between some of the elements.
- removing
Marked as helpful0@majdi-nejiPosted 3 months ago@PhillipDaum i honestly wasn't aware of how important these practices are i will definetly implement them thank you
1 -
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