Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Responsive intro section with hover effects - CSS grid & flexbox

Jen 1,230

@En-Jen


Design comparison


SolutionDesign

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

Roman Filenko 3,335

@rfilenko

Posted

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

Jen 1,230

@En-Jen

Posted

Thanks so much, Roman! I did what you suggested and it worked perfectly. Just uploaded my updated code :)

0
Pankaj 0

@pankaj485

Posted

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 GitHub
Discord logo

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