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 Responsive page using CSS Flexbox

P

@TusharKaundal

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?

  • Best part was that i learned about how to put transition for box-shadow using hover property
.card {
  max-width: 24rem;
  background-color: var(--white);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--gray-950);
  box-shadow: 8px 8px #000000;
  transition: box-shadow 0.4s ease-in-out;
}

.card:hover {
  box-shadow: 16px 16px #000000;
  cursor: pointer;
}

.card:hover .text-preset-1 {
  color: var(--yellow);
}

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

  • To get card responsive with respect to smaller screen

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

  • How better we can design above Blog Preview Card webpage

Community feedback

P
Chris 60

@Ramirez-Christopher

Posted

nsive Design:

Your media query for screens smaller than 468px adjusts font sizes well, but consider adding some padding or margin adjustments too for improved readability on small screens. You might also want to make the body or .card-container layout adjust more smoothly for larger screens by using min-width or changing the flex direction at higher breakpoints.

Marked as helpful

0

P

@TusharKaundal

Posted

@Ramirez-Christopher Will consider your suggesition and try to improve it

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