Second attempt.

Solution retrospective
I update the HTML and CSS code because it is a bit mess (I think). I would really appreciate it if you give a feedback, especially in my HTML/CSS code. Thank you in advance.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @vanzasetia
👋Hi Ted!
I have some feedback on this solution:
- For the class naming convention, I recommend to use BEM Naming Convention.
- For the
src
value on everyimg
tag. I would recommend you either add/
(absolute file path) or./
(relative file path). It will clarify where the images are. To learn more you can check my blog post about file path. - Only have one
h1
on every page. Swap allh1
withh2
. - Add
width
andheight
properties to every image for better CLS(Cumulative Shifting Layout). For more info, you can check web dev article about optimize CLS. - Avoid using
!important
flag. In this case you don't need it at all.
a:hover{ border: 2px solid var(--color-content); background-color: transparent; color: var(--color-content) !important; }
- The
body
background color should be grayish color, not white.
That's it! Hopefully this is helpful!
Marked as helpful - @Dharmik48
Hello,
Your solution is really good! Looks great! But just one thing you add is a transition on hover for the buttons, it will make the experience better.
Keep up the good work!
Marked as helpful
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