Design comparison
SolutionDesign
Community feedback
- @gautam32b7Posted 8 months ago
Hi there 👋
Great job! If you hover over the
Learn more
button you will notice the page jumps. Here is how you can fix it..btn-1 { padding: 0.8em 1.38em; border: transparent; background-color: var(--color-2); /* transition: border 300ms, color 300ms, background-color 300ms; */ /* cursor: pointer; */ transition: all 0.3s ease; } .btn-1:hover { cursor: pointer; background-color: transparent; /* border: solid 1px var(--color-2); */ outline: 1px solid var(--color-2); color: var(--color-2); }
Hope you find this helpful.
Marked as helpful0
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