Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Blog preview card using Flexbox, BEM

hchao7ā€¢ 50

@hchao7

Desktop design screenshot for the Blog preview card coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

I am proud that I used Flexbox to distribute space between and within elements, rather than relying on margins or padding. For my next project, Iā€™d like to experiment writing CSS without using BEM methodology, so I can gain more experience with other types of selectors besides class selectors.

What challenges did you encounter, and how did you overcome them?

I found it challenging to reduce font-size for smaller screens without using media queries. Eventually, I used clamp() to resize the font-size based on the viewport.

What specific areas of your project would you like help with?

Initially, I wanted an instant transition from desktop to mobile font-size once the viewport reached a certain width. Ultimately, I used clamp(), which resizes font-size gradually. Is there a way to accomplish an instant resize without using media queries?

Community feedback

Onlyy-Ramā€¢ 20

@Onlyy-Ram

Posted

Excellent buddy !! it looks perfect. just pay attention to the (greg hooper ) font. It looks bolder than the design.

Overall, good job !! šŸ™Œ

0

Please log in to post a comment

Log in with GitHub
Discord logo

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