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 using flex

Ryan O'Hanlonā€¢ 140

@Ryan-OHanlon

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?

I'm most proud of being able to complete this challenge faster than my previous challenges which makes me feel confident that I'm starting to understand the fundamentals of CSS.

If I could do something different it would be to try and use a CSS framework to test myself. While using custom CSS rules is nice for small projects, a framework would likely result in true responsive web design while learning the syntax that web developers use.

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

My big challenge for this challenge was using CSS rules to make the appearance of boxes using the div element using margin and padding. Being the first challenge to make multiple boxes for each social link, I struggled to understand the difference between margin and padding. After doing some research, I understand now that to not have each div element merge on top of each other, you want your margin to be bigger than the padding. The padding controls the size of the box while the margin determines the distance between each block element.

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

If there was an area I would like help with this project it is learning how to better match the height and width of the project to match the solution.

Going based off of just a picture to determine the height and width of the solution without any dimensions cited of what the dimensions of the body should be just leaves me guessing what the height and width should be and if I should be using absolute sizing like px or relative sizing like em.

Community feedback

Daniel šŸ›øā€¢ 44,230

@danielmrz-dev

Posted

Hey there!

Congrats on finishing the challenge! āœ…

Your solution looks awesome!

šŸ“Œ It's a good idea to use semantic HTML elements like <ul> and <li> for lists. This makes your code more accessible, maintainable, and meaningful.

Here's an example of how you can refactor your code:

After Refactoring

<ul class="list-container">
    <li><a href="#">Github</a></li>
    <li><a href="#">Frontend Mentor</a></li>
    <li><a href="#">LinkedIn</a></li>
    ...
</ul>

Using <ul> and <li> makes your content structure clearer, which is better for screen readers and search engines. Plus, it follows best practices for HTML.

Hope this helps!

Keep up the great work!

Marked as helpful

1

Ryan O'Hanlonā€¢ 140

@Ryan-OHanlon

Posted

@danielmrz-dev Thank you for the feedback. I didn't consider that you could use lists as a solution to make the buttons.

Is using lists considered the best practice? Because the peer review I was given to give feedback to used the button tag which I didn't know existed until today.

Also, what would you have to do to make each list item have their own space to look like a button in CSS? I'm not familiar with the attributes you would use.

1
Daniel šŸ›øā€¢ 44,230

@danielmrz-dev

Posted

@Ryan-OHanlon

Using lists is indeed considered best practice. But eveything depends on your projects needs. In this case, the tag <a> should be the best choice, considering that the social media "buttons" are in fact links to other pages (anchors, that's why we use <a>). The <button> tag is more appropriate when you need to do an action inside the current page, like opening a menu or submitting a form.

About the button appearance, I don't really understand what you mean, but you can use CSS to make any element look like you need. For this example, you can make the <a> tags look like buttons adding background-color, hover effects and others.

Using the correct tags will not prevent your elements from looking like buttons or any other element, because you can totally change their styles with CSS.

Marked as helpful

0

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