Design comparison
Solution retrospective
Hello, Frontend Mentor community πββοΈ.
This is my solution β for the Social Links Profile
This was a fun project, and I am thinking to include it in my future projects. I am currently working on my Frontend Developer Portfolio, So this gave me a good idea about some of the things that I want to add.
I had some trouble with resizing the image. So I would appreciate it if I get a feedback on that.
Follow me in my journey to finish all Free π and Free + challenges (61 left π―)! Gotta Catch βEm All
That's all.
Have Fun Coding!
What specific areas of your project would you like help with?I would like help with the use of images in flexbox.
How should we define an image size in a flexbox, along with flexbox width.
Community feedback
- @jakegodsallPosted 8 months ago
Hi π
Great work with this!
I've cloned your repository and played around with the code a little. You're approach to styling the image and creating the layout is mostly just fine in my opinion.
Just a couple of minor points:
-
The
<div>
around the profile picture is kind of unnecessary. Wrapping the image and then adding aborder-radius
to the container leads to you needing to applyoverflow: hidden
on the container. You could actually remove this container and just apply theborder-radius
directly to the<img>
element. That way you don't have to worry about overflow. -
You're having some problems with the layout of the image because you are combining both fixed-value
width
andheight
withtransform: scale()
to define the size of the image.width
andheight
are part of the box-model, and therefore inform the rest of the document where elements should be placed.transform: scale()
is not. That means when you increase the size with thetransform: scale()
function, the image becomes bigger, but the space allocated for it does not increase. I'd recommend just usingwidth
andheight
exclusively and then adding amargin-bottom
to the image to create space below.
Hope this helps π
Marked as helpful1@rahulkumar215Posted 8 months agoHello @jakegodsall π
Thanks for the feedback, I will definitely work on this and improve my code.
0@jakegodsallPosted 8 months ago@rahulkumar215 youβre welcome! Happy coding π
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