Design comparison
SolutionDesign
Solution retrospective
Any feedback on how to group my classes/html or anything else on the css side.
Community feedback
- @pikapikamartPosted about 3 years ago
Hey, great work on this one. Layout in general looks great.
For your queries:
- I would recommend using
bem
methodology. This helps you as a developer to create reusable and related classes. Since when usingbem
you only need a parent selector to which be referred to as "block" and elements inside it will be using the parent's name as a namespace for their name. Search this one up, this will help you a lot, also, usescss
instead of regular css, this helps to implementbem
faster.
Some other suggestions would be:
- Don't change the
root
font-size
you don't really need, just leave it by default. - Always have a
main
element that will wrap the main content of the webpage, this helps users to properly navigate your site, for this one, thewrapper
selector could have usedmain
element instead ofdiv
. - The
alt
for the person's image should have used their name as the value likealt="Victor Crest"
when a person's name and image is present, always use their name as thealt
value. - Also, do not forget to always include the
alt
attribute on theimg
element. - Always have a single
h1
element on a webpage, for this, you could make the person's name anh1
, but in a real site, you would use heading tag on the name but noth1
. For this one, a better approach would be to use ansr-only
h1
. Take a look at Grace's solution for this challenge, inspect the layout and see how she uses theh1
element, also the css styling that is applied on thath1
, copy those styling, you will use that a lot. - For the
card-footer
selector, since those are basically "list" of information about the user, you could have usedul
element on it. - The text inside those information are not suited to be a heading tag, using
p
tag would be really great.
Aside from those, great job again on this one.
Marked as helpful1 - I would recommend using
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