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 with bootstrap

@KollerJacq

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


Hi folks! I just finished this responsive blog-preview card with Bootstrap. Feel free to leave me any suggestions for improvement!

Community feedback

Account Deleted

Its good i like it. My suggestion would be to try not to have too many styles in the media query. and for the main, you can just use the .container div to hold everything in. its only when your making bigger 1 or multi page sites that you would use the main header and footer tags, but for smaller components just a simple div if perfectly fine.

Also on your card, you dont ned and is best not to add a height and the hight will be just fine and follow the content that's in the card div itself. heres and example of a simple card i would normally write.

.card {
    width: 300px;

    border-radius: 15px;

    padding: 1rem;

    overflow: hidden;
    background: white;
    box-shadow: 8px 8px 2px 5px var(--clr-base);
    border: 1px solid var(--clr-base);
}

Thats how i styled my card. If you need any future more assistance id be happy to help.

Marked as helpful

1

@KollerJacq

Posted

@Benjihunt97 Thanks a lot for your tips! I immediately started working on the code and implemented your comments!

1

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