Responsive intro section with hover effects - CSS grid & flexbox
Design comparison
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!
Community feedback
- @rfilenkoPosted over 4 years ago
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
1@En-JenPosted over 4 years agoThanks so much, Roman! I did what you suggested and it worked perfectly. Just uploaded my updated code :)
0 - @pankaj485Posted over 4 years ago
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; )
0
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