Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 1 year ago

3 Column Preview Using Grid

ErrorCode710•150
@ErrorCode710
A solution to the 3-column preview card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

Only the grid

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

First problem I face on this project is when I hover the button it expand because of the fix height not being applied I don’t know what are the other solution but for now this is my solution.

My solution is add a fix height.

Second Problem When I try to hover the button the text inside will go down or something moving,

My solution is adding a border in the natural state this way the button always has a border but its only visible on hover,

.content__button {
  background-color: var(--clr-neutral-200);
  border: none;
  text-align: center;
  border-radius: 1.5rem;
  padding: 0.725rem 2rem;
  border: 2px solid transparent; /* Add a transparent border */
}
.btn__text {
  margin: 0;
}

/* Hover Effect */
.content__button:hover {
  cursor: pointer;
  color: var(--clr-neutral-200);
  background-color: transparent;
  border-color: var(--clr-neutral-200) 2px solid;
}```

### What specific areas of your project would you like help with?
***If you have any suggestions on how I can improve this project, feel free to leave me a comment!***
Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on ErrorCode710's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License