Blog Preview Card Solution: HTML & CSS

Solution retrospective
Styling in CSS is new to me, but I've started to get the hang of it.
What challenges did you encounter, and how did you overcome them?Linking TrueType files to CSS was a bit confusing for me. I had to go back and forth watching tutorials and surfing the web.
What specific areas of your project would you like help with?I wonder how other developers organise their code stack. Would really appreciate some tips and guidance on how to keep my code stack tidy and clear 🙌
Please log in to post a comment
Log in with GitHubCommunity feedback
- P@mkerr-github
Looking good, well done!
One tip :
For responsive purposes the convention is to convert pixel measurements to "rem". To do so divide the pixel value by 16 (as the base rem is 16px, because 16px is the default font size setting size on most browsers).
Then use max-width to set the large widths for desktop and min-width to set the small widths for mobile. Try to let the browser set the heights of elements unless you need a very specific height.
The convention is to use rem (and sometimes em), instead of pixels for most items, as rem and em are more responsive than pixels. Pixels can be used for small elements like icons and buttons where you do not want the size to change even on small screens.
More details here:
If you found anything in this comment helpful:
Please remember to click the ‘Mark as helpful’ button, thank you!
Keep up the good work, and keep going! 👋
Join 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