Skip to content
  • Learning paths
  • Challenges
  • Solutions
  • Articles
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 5 years ago

Responsive intro section with hover effects - CSS grid & flexbox

Jen•1,230
@En-Jen
A solution to the Huddle landing page with a single introductory section challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

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!

Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

  • Roman Filenko•3,335
    @rfilenko
    Posted almost 5 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

  • Pankaj•0
    @pankaj485
    Posted almost 5 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; )

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
Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub