Design comparison
Solution retrospective
I'm getting a lot better at using a mobile first workflow
What challenges did you encounter, and how did you overcome them?I initially found it hard with the list text wrapping under the bullet points. Thank God for stackoverflow lol!
Community feedback
- @StroudyPosted 2 months ago
Hey great job getting it so close to the original, some things I noticed,
- Missing a
<meta>
description tag for SEO purposes, - Setting a height and width attribute to your
<img>
will increase performance to reduce layout shifts and improve CLS, It reserves the space on the page for the image, - Line height is usually unitless instead of
line-height: 150%;
should useline-height: 1.5;
this means it is 1.5 x the font-size, unitless value ensures that the line height will scale proportionately. - You should also use relative units for
@media
aswell,
Smashing it, Great code in all honesty, I hope you found some of this information helpful, You should give the articles a good read and I look forward to seeing some more from you, Happy coding! 💻
0@steffieMDPosted 2 months ago@Stroudy
Hiiii, thank you so much! I'll get on this. Thank you so much for the info on the line-height! i'll definitely take note.
Regarding the height of the image, i thought fixed <img> heights can tamper with the responsiveness of the page. Also, for the media queries the only place i didn't use relative units was the border radius. I'm meant to use relative units there as well yeah?
Again, thank you sooo mucch :)
0@StroudyPosted 2 months ago@steffieMD, Hey,
- HTML, It provides a fallback size for browsers, Settting the width and height attributes to define the intrinsic size of the image. This helps the browser allocate space for the image while it's loading, reducing layout shifts.
- Use CSS to control the image size responsively, ensuring it looks good across all devices.
Hope this was a good explanation and helpful, Happy Coding!
Marked as helpful0 - Missing a
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