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-main

@isaacsuckling

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 most proud of the end product. I think it looks very accurate compared to the original design.

Community feedback

MikDra1 6,650

@MikDra1

Posted

If you're looking to make your card responsive effortlessly, consider this approach:

.card {
    width: 90%;
    max-width: 37.5rem;
}

The card will take up 90% of its container on smaller devices (like the body), but when it hits 37.5rem (600px), it will cap at that size.

To center the card within its parent, try this code:

.container {
    display: grid;
    place-items: center;
}

I hope this guidance is helpful! 💗💗💗

Well done, and keep pushing forward! 😁😊😉

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