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 card using CSS

Eugen 200

@psdesignro

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 learnt how to resize font depending on viewport width without using media queries

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

I had some problems with positioning the annotation in the right bottom corner, because of the overflow and horizontal scroll, but found a solution.

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

I couldn't find a proper solution for vertical overflow, but it may be due to the small laptop screen I was checking. So I added a top padding for the main container, and in this case, the card doesn't stick to the top.

Community feedback

@saksben

Posted

Looks good! For the vertical overflow issue, what I did is set the body height and width to vh and vw, and margins to 0, and then use flexbox to center the main container. If you're talking about the scroll bar on the side, that can be fixed by setting the body's "overflow" css property to "hidden."

Marked as helpful

0
Eugen 200

@psdesignro

Posted

Hi, Thanks for the feedback. The overflow:hidden also disables scroll on a smaller window too. I think I'll explore more later, for now I'll leave it like this

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