Design comparison
SolutionDesign
Community feedback
- @correlucasPosted about 2 years ago
πΎHello Masrafi, congratulations for your new solution!
Here's some tips and corrections for you solution:
When you download the project files thereβs a file called
style-guide.md
where you can find information such ashsl color codes
and thefont-size
for the headings.This is the color for the paragraph
.container p { text-align: center; color: hsl(212deg 30% 40%); }
Give the correct size for the container with
max-width: 320px
.container { max-width: 320px; background-color: var(--White); border-radius: 0.55rem; padding: 1.25rem; }
Align the container giving
min-height: 100vh
body { display: flex; font-family: 'Outfit', sans-serif; font-size: 15px; background-color: var(--Light-gray); display: flex; justify-content: center; align-items: center; flex-direction: column; margin: 1.25rem; min-height: 100vh; }
π I hope this helps you and happy coding!
Marked as helpful0 - @denieldenPosted about 2 years ago
Hey Masrafi, You did a great job π
Let me give you some little tips for optimizing your code:
- add
main
tag and wrap the card for improve the Accessibility - to make it look as close to the design as possible add
width: 20rem
to.container
class - add descriptive text in the
alt
attribute of the images - remove all
margin
from body - add
min-height: 100vh
to body because Flexbox aligns child items to the size of the parent container
Hope this help! Happy coding π
Marked as helpful0 - add
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