Blog preview card using HTML, CSS Flexbox and media queries.
Design comparison
Solution retrospective
I´m so proud to finish this new procject and see how my knowlege is going bigger day by day learning new things.
What challenges did you encounter, and how did you overcome them?Using flexbox and media queries has beea a good challenge for me necause I have learned a lot.
What specific areas of your project would you like help with?If you can give some feedback about my procject it will be so great.
Community feedback
- @chirag-bishnoiPosted 8 months ago
Hello there, the card is good but I'm seeing two problems in the layout. The background shadow only appears when we hover over it even though it was part of the card so it was suppose to stay there without hover. Another thing that I noticed is that there is horizontal and vertical scrolling this is because the content is overflowing because you have given your
main
tagwidth: 1440px;
andheight: 960px;
to fix this issue remove both width and height from the main tag. To fill the white space from underneath give your body minimum height of 100vhbody { min-height:100vh; background-color: #f4d04e; display: flex; flex-direction: column; justify-content: center; }
remove the flex from the main tag and give it to the body instead. And don't forget to change the flex direction!
and this will solve the issue :)
Marked as helpful0@juancmdevPosted 8 months ago@chirag-bishnoi thanks for your helpfull review, I´ve made the changes and my procject looks so good.
Thank you so much.
1
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