social links profile, using flexbox and CSS media query

Solution retrospective
Small tricks:
- If you want to use an HTML
button
element and style it the way you like, first you need to unset all its default styles like this:
.button { all: unset; /* Now you can write any styles you want here */ }
- When you want to create a perfect circle from a block element,
set its
border-radius
to 50%:
.profile__picture { border-radius: 50%; overflow: hidden; /* Ensures that anything inside the box doesn’t overflow from the edges, making the effect work properly */ }
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on AminForouzan's solution.
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