Submitted about 2 months ago
Blog Preview card Responsive page using CSS Flexbox
@TusharKaundal
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
- How better we can design above Blog Preview Card webpage
Community feedback
- @Ramirez-ChristopherPosted about 2 months ago
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 helpful0@TusharKaundalPosted about 2 months ago@Ramirez-Christopher Will consider your suggesition and try to improve it
0
Please log in to post a comment
Log in with GitHubJoin 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