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

3-column preview card component

Finneyโ€ข 3,030

@Finney06

Desktop design screenshot for the 3-column preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


This was easy but I still have issues with the design,it breaks whenever I check out the design on desktop mode on chrome on my mobile phone.Can someone please help me out with this issue...!?

Community feedback

Lucas ๐Ÿ‘พโ€ข 104,560

@correlucas

Posted

๐Ÿ‘พHello Finney, congratulations for your new solution!

Here's my tips for you about the card responsiveness and how to improve it:

Replace width: 850px; with max-width: 850px; to make it responsive:

main {
    display: flex;
    margin: 0 auto;
    justify-content: center;
    min-height: 100vh;
    align-items: center;
    max-width: 850px;
    flex-direction: row;
    border-radius: 10px;
    overflow: hidden;
}

Note that the difference between these two properties is that width is fixed, example, width: 850px is an container that doesn't get bigger or smaller than 850px but max-width: 850px have the maximum of 850px and can contract when the screen scales down and adjust its size.

๐Ÿ‘‹ I hope this helps you and happy coding!

Marked as helpful

1

Finneyโ€ข 3,030

@Finney06

Posted

@correlucas thanks for the feedback.

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