Responsive intro section with hover effects - CSS grid & flexbox

Solution retrospective
Just wondering if anyone has any tips for creating perfectly circular borders around icons and centering the icon in the middle of the border while still being able to click on the space between the icon and the border and have it act as a button. The way I coded it results in perfect circular borders with the icon perfectly centered, but the space between the icon and the border isn't clickable. Any other feedback on my code would also be greatly appreciated!
Please log in to post a comment
Log in with GitHubCommunity feedback
- @rfilenko
Hi, just skip div there, they are no needed here. Make <a> a flex-container and center icon inside it. Also add some hover effect on link, not icon, with some transition.
Roman
- @pankaj485
give it some class and inside the class add ( border-radius : 50% ; ) to keep it on the center add the ( margin:auto ; ) property or ( text-align:center; )
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