Design comparison
Solution retrospective
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
- @Code-BeakerPosted 5 months ago
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 thebutton
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 CSScolor
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 helpful1 - The buttons should not contain a
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