Design comparison
Solution retrospective
Please give me feedback on my code, I really want to improve my coding I am taking this challenge seriously, so if there is anything like suggestion/feedback or whatever you think might help me improve my code please don't hesitate to comment. I would really appreciate it if you will. Thank you!
Community feedback
- @vanzasetiaPosted about 3 years ago
👋Hi Ted Dino!
I have some feedback on this solution:
- For the background pattern, I recommend to use CSS
background-image
onbody
element, instead of usingimg
tag. You can see ApplePieGiraffe solution for thebackground-positon
, if you're struggling to position the backgrounds. - You should never wrap text only with meaningless tag like
span
. It's bad for accessibility. - The stats should be a
ul
and wrap each item withli
. - The stats number shouldn't never be a heading tag. If you think it is an important element, try to use
strong
tag instead. - You need to do this to make all elements
box-sizing: border-box
* { box-sizing: border-box; } /* OR */ html { box-sizing: border-box; } * { box-sizing: inherit; }
- Try to use flexbox to make the card on the center of the page. It's much simpler than using absolute positioning method.
- Use
rem
or sometimesem
instead ofpx
unit. Usingpx
will prevent the user to control the size of your page based on their needs.
That's it! Hopefully this is helpful!
Marked as helpful1@ted-dinoPosted about 3 years agoHi @vanzasetia, thank you for taking your time reviewing my code. First, its true that I had trouble figuring out how to do the background and I want to thank you for suggesting a solution for that, I will definitely repeat this challenge. Second, about the stats I didn't know what to do there so I just make a way how display it like in the image. silly
Your comment really helps me understand more about CSS. I think I know much more CSS than yesterday because of you. I will stick this in my mind. Thank you so much.
0@UnderdogScripterPosted about 3 years ago@vanzasetia Got any idea on how did ApplePieGiraffe position the background images so precisely?
0@vanzasetiaPosted about 3 years ago@UnderdogScripter He's just playing around with the
calc
until it got the result that he wanted. See the solution page and scroll down to Arturo Simon and see what ApplePieGiraffe had replied.0 - For the background pattern, I recommend to use CSS
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