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

card with bootstrap

#bootstrap

@Xenathra

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?

im proud of finish this without googling

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

keep learning

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

frontend

Community feedback

@0xabdulkhalid

Posted

Hello there 👋. Congratulations on successfully completing the challenge! 🎉

  • I have a suggestion regarding your code that I believe will be of great interest to you.

CSS 🎨:

  • Let me explain, How you can easily center the component for better layout without usage of absolute positioning.
  • We don't need to use absolute to center the component both horizontally & vertically. Because using absolute will not dynamical centers our component at all states
  • To properly center the component in the page, you should use Flexbox or Grid layout. You can read more about centering in CSS here 📚.
  • For this demonstration we use css Grid to center the component
<body class="min-h-screen grid place-items-center">...</body>
  • Now remove these utility classes from div after removing you can able to see the changes
<div class="position-absolute top-50 start-50 translate-middle">...</div>
  • Now your component has been properly centered.

.

I hope you find this helpful 😄 Above all, the solution you submitted is great !

Happy coding!

1

@keertyverma

Posted

This looks great. I have few feedback for you

  • The current design appears well-optimized for mobile screens. However, to ensure consistency across different devices, could you please adjust it to be responsive on desktop screens as well? Increasing the size of the cards would likely enhance the user experience.
  • It seems that the font type is different from the expected design.
  • Typo in card title -> fondations
  • I think you missed out few effect on card hover like
    • changing title color to same as body background color.
    • box-shadow transition

I hope this is helpful for you. Keep Learning!

1

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