Design comparison
Solution retrospective
Hi everyone ππ
This is my 2nd Frontend component submission. I found this relatively easy and fun to do in a short time.
Any feedback to improve my code would be appreciated :-)
Happy codingπΎ
Community feedback
- @correlucasPosted over 2 years ago
πΎHello Saurav, congratulations for your solution!
You've done pretty much anything, there are two things you do to clean your code and make the container have a better aspect in the mobile version.
1.Use a single padding for all the component, you've use a padding property for the img h1 and p. A quick fix for that is removing all these
paddings
and addpadding: 16px;
to thecontainer
div.2.Add
margin: 24px;
to the container to avoid the container touching the screen bounds when you scale down the screen until240px;
.Hope it helps and congratulations again for the solution, seems really good. Happy coding!
Marked as helpful1@SauravJaluiPosted over 2 years agoHey @correlucas π
Thank you for the feedback.
I will implement these and update the solution soon.
Happy coding to you too π¨βπ»
1@correlucasPosted over 2 years ago@SauravJalui you're Welcome Sarauv, keep it up!
1 - @SurajHadagePosted over 2 years ago
Most shortened, semantic & accessible HTML structure would be :
<main> <figure> <img> </figure> <h1></h1> <p></p> </main>
- I recommend you to not upload unnecessary files & folders to Github pages to save server space.
- Use any app like Paint to get actual dimensions.
0@SauravJaluiPosted over 2 years agoThank you @SurajHadage. I will keep these in mind.
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