Design comparison
Solution retrospective
Hi guys Frank Itachi here 👋!
I managed to complete another challenge. Any comment and/or suggestion is welcome.
Happy <coding />
😎!
Community feedback
- @vanzasetiaPosted over 1 year ago
Hi, Francisco Carrillo! 👋
The number statistics should not be
<h2>
elements. Also, the statistic categories can be just<span>
since the text content has been wrapped by<li>
elements.I recommend making the background patterns pseudo-elements of the
<body>
element. This way, you don't need to use media queries to adjust their positioning. I suggest taking a look at Grace's solution as an example.Frontend Mentor | Profile card with pseudo backgrounds and accessible list coding challenge solution
Remove
width
andheight
from the<main>
. It only needs amax-width
to prevent it from getting too large. For the height, let the content inside it controls the height of it. Even better, make it as the card element instead of using<article>
tag.body main { /* width: clamp(330px, 85vw, 20% + 60px); */ /* height: clamp(350px, 51.5vh, 30% + 100px); */ max-width: 300px; width: 100%; }
Also for the CSS selector, you should single-class selector or just select the
main
element. There is no need to include thebody
selector.You should not nest selectors unnecessarily. Remember to keep the CSS specificity as low and flat as possible.
I hope you find this useful. Have fun coding! 😄
0@frank-itachiPosted over 1 year ago@vanzasetia
100% agree bro. Thank you for the feedback.
0
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