Submitted about 1 year agoA solution to the Blog preview card challenge
Blog Preview Card practice
@DebugNinjaSlayer

Solution retrospective
What challenges did you encounter, and how did you overcome them?
- I put the illustration in an img tag, when I set the bottom margin I found that there is still a thin white line under the img tag. Then I learned that I can use
display: block;to remove the extra space. - I learned that
@font-facecan only be used to define custom fonts.font-weightin@font-facedefinition means the accept range of a font-face. I thought I can inheritfont-weightwhen using the custom font and I was wrong. - In the figma design, there is only the state of hover. I wonder what are the others look like, for example, active, focus, error.
- I learned to use
object-fitwhen the size of the container doesn't fit the size of the image in it.
I'm all ears to hear anything about this practice.
Code
Loading...
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on DebugNinjaSlayer's solution.
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