Skip to content
Submitted about 2 years ago

Blog Preview Card using HTML & Custom CSS Properties

LVL 1
Rafael50
@rafaelgonzales612
A solution to the Blog preview card challenge

Solution retrospective


Hi all! Been learning front-end web development for a couple months, and I just have a couple questions regarding this challenge:

-I had trouble getting my card to be centered vertically. When I used margin: auto; it would still stay on the top of the page, and I don't want to hard code a top margin, how would I go about that?

-I was unsure of using @media screen and (min/max-width) in my CSS, I'm still familiarizing myself with responsive mobile-first design. What would be best practice for that?

Thanks for the help!

Code
Loading...

Please log in to post a comment

Log in

Community feedback

No feedback yet. Be the first to give feedback on Rafael’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