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

using flexbox css

Enis67 140

@Enis67

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


need more tips. When I resize the window smaller my button is getting overflow, how can I improve this?

Community feedback

Hassia Issah 50,670

@Hassiai

Posted

you forgot to give the body a background-color.

For a responsive content, give .cards a fixed max-width value. max-width: 600px. there is no need to give .cards overflow: hidden and justify-content: center. Give .card a padding value for all the sides.

Give h1 , p and the button a margin-top and margin-bottom values. In the media query reduce the max-width of .cards.

Always begin with the mobile design first it will make the process a little bit easier.

Use relative units like rem or em as unit for the padding, margin, width values and preferably rem for the font-size values, instead of using px which is an absolute unit. For more on CSS units Click here

Hope am helpful.

Well done for completing this challenge. HAPPY CODING

0

@Vishesh-Shokeen

Posted

Hi i found some things in your code that might help you with the button problem -- .card has padding of 30px which is pushing buttons in small width -- and .cards also has a width of 70% thats causing the same thing .. Hope it helps

P.S you are doing good .

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