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

Three Column Preview Card Component using HTML, CSS, and Flexbox

P
Christina 190

@codercreative

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


This was a fun challenge.

My main problems with this project was to make sure that the buttons stopped moving when hovering over them.

Also, I used "position: relative" and "position: absolute" to make sure the buttons are aligned to the bottom of the container and not jumping around in relation to the paragraphs.

Any feedback is always welcome :)

Community feedback

@VCarames

Posted

Hey @codercreative, some suggestions to improve you code:

  • The car icons are simply there for decoration purposes, there Alt Tag should left blank.

  • The ""Buttons" were created with the wrong element. When the users clicks on them, they are expected to be directed to a different part of your site. So the Anchor Tag will allows this.

  • While having interactive content (cards, links, icons, buttons, etc…) can definitely make content less static, if not done properly, it can actually have negative effect on your users experience. By simply just applying a “hover” effect to your content, you’re assuming that every device is compatible with “hover” effects. Unfortunately, most devices are not. To provide your users a better experience, you can use the @media (hover: hover) . Now users that that are devices that are not “hover” compatible will be able to enjoy your content.

More info:

https://css-tricks.com/solving-sticky-hover-states-with-media-hover-hover/

https://youtu.be/uuluAyw9AI0

  • For media queries, I definitely suggest using em for them. By using px your assuming that every users browser (mobile, tablet, laptop/desktop) is using a font size of 16px (this is the default size on browser). Em's will help with users whose default isn't 16px, which can sometimes cause the your content to overflow and negatively affect your layout.

More Info:

https://betterprogramming.pub/px-em-or-rem-examining-media-query-units-in-2021-e00cf37b91a9

https://uxdesign.cc/why-designers-should-move-from-px-to-rem-and-how-to-do-that-in-figma-c0ea23e07a15

Happy Coding!

Marked as helpful

0

P
Christina 190

@codercreative

Posted

Hi @vcarames

Thank you for your super helpful feedback! I will make sure to update my project with your suggestions.

Have a great day!

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