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

3 Column Preview Using Grid

ErrorCode710โ€ข 150

@ErrorCode710

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


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!***

Community feedback

Tharun Rajโ€ข 1,270

@Code-Beaker

Posted

Hi there, congratulations on completing this challenge. You've done a great job here! ๐ŸŽ‰

I would like to share some of my suggestions regarding your solution that you should look into.

  • The buttons should not contain a p tag. The text of the button should be directly wrapped inside the button element. I suggest you to change the HTML for the button. If you're trying to adjust the color of the text inside the button, just use the CSS color attribute to set the color.
  • Using multiple h1 tags is fine. But, please make sure you don't overuse it. You can learn more about it in this article

Other than that, you've done well with the use of grid layouts, variables and rem units in this project.

Hope this helps you! ๐Ÿ˜Š

Marked as helpful

1

ErrorCode710โ€ข 150

@ErrorCode710

Posted

Thanks !

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