Social media links using HTML and CSS

Solution retrospective
Each link opens in a new tab.
What challenges did you encounter, and how did you overcome them?I use flexbox to center the content.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @grace-snow
Hi, I hope this feedback is helpful 😁
- The image alt must be properly written. See the excellent post in the resources channel on discord about how to write good alt text.
- If opening links in a new tab (unexpected behaviour) you must notify screen reader users that will happen. Include some visually hidden text in a span on each link that says (opens in a new tab) for example.
- Get into the habit of including a full modern css reset at the start of the styles in every project. Andy Bell or Josh Comeau both have good ones you can look up and use.
- Never limit the height of elements that contain text, including the body. This is making your solution overflow the page at the top and bottom on some screen sizes and is especially bad when users increase their font size (I'll add some Screenshots to demonstrate in discord for you). Min-height is fine to use on elements that contain text in descedents, if you need to, but height is not. The only elements that sometimes require a height are icons/images.
- Add text align center to the component.
- ⚠️ Very important: Font size must never be in px
- Unless using gap there is no real benefit to making the component into a flex column. It's not wrong but there is no benefit either so these kind of things will bloat the css.
- The link and hover styles should be on the anchors not on the list items. The whole anchor is what is clickable so that is where the hover must go.
- This challenge does not need a media query at all. The container should have a max width in rem (and optionally a width 100%).
- If you do need media queries in future challenges they must be defined in rem or em not px.
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