Design comparison
Solution retrospective
Sometimes I wonder with element should I give the margin or padding to.
Community feedback
- @frank-itachiPosted almost 2 years ago
Hello there π. Congratulation for completing the challengeπ!
I have some suggestions about your code that might interest you.
HTML π:
- Since the mobile design has a different image, you can use the
<picture>
tag that allows you to interchange the images depending of the viewport size. Red more about this awesome tag here.
I hope you find it useful! π Above all, you did a good job!
Happy
<coding />
π!Marked as helpful1@RachelikPosted almost 2 years ago@frank-itachi Thanks and it did give me improvement for it to be interchangeable between mobile and web version.
0 - Since the mobile design has a different image, you can use the
- @jak-idaPosted almost 2 years ago
Hi! This project looks really amazing!
In answer to your question, it really depends on what sort of design you are going for.
All you need to remember, when trying to decide for yourself, that margin affects the space outside of the container and padding affects the space inside the container.
Some effects look better than others so there's no harm in taking the time to play around with them.
I wish you well on your coding journey!
1@RachelikPosted almost 2 years ago@jak-ida Hey Thanks.
I am playing around with that but also looking at what practices make the best of it in terms of look and speed. Wish you well on your coding journey too! See you around!
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