Design comparison
Solution retrospective
One of the first challenges that I worked on. Appreciate any feedback.
Community feedback
- @pikapikamartPosted almost 3 years ago
Hey, great work on this one. Just saw the site and it looks really great overall.
Some suggestions on the site would be:
- Separating the
.attribution
from themain
would be really nice. The.attribution
could be placed inside of afooter
so that it will be contained by its proper landmark:
<main /> <footer />
- Change the
.container
width
into usingmax-width
so that even if you go into small screen-size, the layout will still scale with it. Usingwidth
gives an element a fixed size whilemax-width
just sets a maximum. - For the person's image, you don't need to use
figure
on this one but if you insist on doing so, I would use the person's name as thefigcaption
so that it will be present.figcaption
is used alongside thefigure
to give a caption on an image. - For the
.stats
selector, if you look at the content inside it, those look like list of items right, for this, you could use adl
tag. Just now, I thinkdl
would suit better thanul
, since for second text like "followers"` it servers as a title for the content inside it. On this one, I would use a markup that looks something like this:
<dl> <div> <dt></dt> <dd></dd> </div> .... ..... </dl>
Though on this one, for each
div
that would contain thedt
anddd
I would useflexbox
on them and will set aflex-direction: column-reverse
. The reason is that, thedt
should be using the text like "followers", "likes" and not the number because the number-text is not suited to be a heading for each list-item. Thecolumn-reverse
will swap their visual position but still keeping the same semantic.Aside from those, again great job for this one.
Marked as helpful0 - Separating the
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