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

CSS HTML

@AslamtoIbrahim

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


I don't know how to set width for different screen sizes media query

Community feedback

hitmorecode 6,230

@hitmorecode

Posted

What you did is correct. You need to add the border on the buttons when hover.

@media only screen and (max-width: 575px) {

     body{
        padding: 1rem 0;
     }

    .container{
/*         display: flex; */ /* you don't need to repeat this, you already have this above */
        flex-direction: column;
/*         align-items: center; */ /* don't need to repeat this also */
        border-radius: 0.5rem;
    }
    
}

Marked as helpful

1

@AslamtoIbrahim

Posted

thank you 🙂 @hitmorecode

Yeah, I really need to add border when hover

and delete these repeated lines.

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