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

Social links profile

@hvQuoc133

Desktop design screenshot for the Social links profile coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

Doing this project helps me learn more about Html and Css.

What challenges did you encounter, and how did you overcome them?

There are CSS properties that I don't know about.

What specific areas of your project would you like help with?

Please help me consider the appropriate way to use tags in Html?

Community feedback

P

@fadialjawhary0

Posted

This is great. I got few suggestions for you.

1- Make the button's cursor as pointer by using this CSS property "cursor: 'pointer' "

2- Make the <a> </a> tags to have this " target='_blank' " like this <a href="Link here" target="_blank"> </a>. This will make the website be opened in a new tab.

3- On small screen sizes (around 450px width and less), the profile picture is not centered in the middle, try to make it in the middle by either using Flexbox for all the items (containers), with flexDirection: 'column' and alignItems: 'center', or by using margin: 0 auto; Try to learn and use Flexbox.

Great job :).

Marked as helpful

1

@Black1uk

Posted

okay, thank you very much.@fadialjawhary0

0

@hvQuoc133

Posted

@fadialjawhary0 Yes, I changed it according to your wishes, but my avatar still couldn't be centered using "flexDirection: 'column' and AlignItems: 'center' or using margin: 0 auto" so I used marginLeft

0
P

@fadialjawhary0

Posted

@hvQuoc133 I just checked, you are currently using "margin: 0 auto 20px auto" on the div with classname imgMain, which is similar to "margin: 0 auto;" but yours also gives a margin to the bottom, and the image is being centered in the middle correctly. :)

In order to use flexbox, you have to follow these 4 steps.

1- to the div with classname "container", add these styles: display: flex flex-direction: column align-items: center

2- to the div with classname "btnLink", add these styles: width: 100% (it gets affected by the align-items: center, so we need to fix it's width to 100%)

3- to the div with classname "imgMain", remove the styles for the margin, overflow, and border-radius. delete them.

4- add border-radius: 50% to the image directly instead

Quick note: apply the cursor: pointer to the "button" itself, not to the <a> tag.

Like that, it should be working fine :)

0

@hvQuoc133

Posted

@fadialjawhary0 Thank you very much, looking forward to teaching you next time <3

1

@nuraf9607

Posted

For semantics, You could consider using the main tag for the primary content container, and also instead of using h4, it would be best to use the p tag instead, after all this isn't a heading. lastly, change h2 to h1 because that's the primary text that people would focus on while visiting the page, I hope I helped you.

Marked as helpful

0

@Black1uk

Posted

okay, thank you@nuraf9607

1

@hvQuoc133

Posted

@nuraf9607 Yes, I have revised it according to your request. Thank you for your feedback

1

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