
Blog Preview Card - focusing on relative units
Design comparison
Solution retrospective
I am most proud of the improvements I'm making towards semantically correct HTML, accessibility, and reusable CSS variables.
What challenges did you encounter, and how did you overcome them?I ran into a few minute problems, one being that an element I gave a display of inline-block to had some margin on it, even though I had all margins and paddings reset. It had to do with a vertical-align property that is automatically set to baseline. I was able to fix it by setting it to top.
What specific areas of your project would you like help with?The main focus of this project was to use relative units as opposed to fixed pixel sizes. I was trying to keep the solution as close to the design as possible, resulting in some crazy rem's, like 0.875rem. Is this ok?
Community feedback
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