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 css and html

@Carl-code

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 very happy with the projects that I am delivering, without a doubt each one is going up a level

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

I found that when placing the images so that everything is focused on the container we must set a size to that container and also to the image itself.

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

In semantics and the use of CSS with responsive measures to make my projects more adaptable.

Community feedback

@keinermendoza

Posted

Hola Carlos. You can improve responsive design with just a few small changes. Instead of using fixed pixel widths, consider using percentage widths and setting a max-width to establish a limit, for example in:

.card-container {
    width: 100%;
    max-width: 327px;
    /* height: 501px; */
}

then you can leave the image to adapt its container, for example:

.img-container{
    width: 100%;
    height: auto;
}

In that case you don't need to use overflow: hidden

0

@Carl-code

Posted

@keinermendoza Thank you for taking the time to give me your advice, I will take it into consideration for future challenges.

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