This is a solution to the Social links profile challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- See hover and focus states for all interactive elements on the page
- Solution URL: Social Links Profile Repo
- Live Site URL: Social Links Profile Live
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Mobile-first workflow
- To make a square image round, since the image was already in a square format of 32 x 32, it was enough to apply a border-radius of 50%, as shown below.
.card header img {
...
border-radius: 50%;
}
- To make the link clickable anywhere in the container, I applied a display: block to the link itself and used a line-height equal to that of the parent element.
main ul li a{
display: block;
text-align: center;
line-height: 2.75rem;
width: 100%;
}
3.The separation between the links was achieved using the Flexbox gap property.
main ul{
display: flex;
flex-direction: column;
gap:0.9375rem;
}
I intend to continue exploring the various applications of Flexbox.
- Website - Github @lia-oliveira
- Frontend Mentor - @lia-oliveira
I’m grateful for the valuable tips from users @SabineEmden and @Mohammed Aljbalai regarding accessibility. I’ve already started using the tools they suggested, and they’ve been incredibly helpful.