Design comparison
SolutionDesign
Solution retrospective
I notice that when hovering my Learn More button my whole content is slightly moving up ? Why is that happening? I try googling but I can't find any answer.
Community feedback
- @TH3RIVPosted almost 2 years ago
Hi, @ralphvirtucio!
Your content is not moving up, your whole container is expanding and that is because you are adding
2px
border onbutton:hover
. This then expands your whole container. Move theborder
property from the:hover
state to the button itself and that should fix it.Hope this helps!
Marked as helpful0 - @ikennarichardPosted almost 2 years ago
I think is because of the 2px border that gets added to the button when you hover, also add it tothe button when its not hovered.
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