Design comparison
Solution retrospective
I tried to refactor this project with the idea of applying some accessibility items. The idea was to use the basic structure of HTML/CSS to guarantee a better and more accessible application.
To improve, I believe that understanding more about how to use the "meta" tag would help.
What challenges did you encounter, and how did you overcome them?Application of accessibility, although not enough, I have worked very little with this aspect in my projects and would like to dive deeper into it.
What specific areas of your project would you like help with?Accessibility and advanced CSS application.
Community feedback
- @DarrickFauvelPosted over 2 years ago
Hey Bruno,
I would also recommend removing all of the complex CSS reset style rules in your stylesheet to simplify your code.
If you want to use a simpler reset, you can use this.
:root { font-size: 62.5%; // as I mentioned about previously } * { box-sizing: border-box; margin: 0; }
To explore this more, take a look at Josh Comeau's Custom CSS Reset.
If this was helpful, let me know. 👍
0 - @DarrickFauvelPosted over 2 years ago
Hi Bruno, 👋
Congratulations on submitting your first solution! 🥳 It looks really good.
A good HTML practice with a card component is to wrap your card content in a
<div class="card">
element. Also, within thecard
element, you can havecard__image
andcard__body
elements. This is what I did for my solution.It looks like you have a mix of
px
andrem
font sizes. I would recommend using `rem' for all font sizing so as to be responsive to grow and shrink with different screen sizes.A method I use to help me easily translate
px
torem
is to setfont-size: 62.5%
in the:root
. This makes,10px = 1rem
. This way if you want to use a font size of24px
, all you have to do is move a decimal point and use2.4rem
instead. This also works great for margins, paddings, height, and width. However,em
would be a better choice for those, but it is trickier to use.Here is a good youtube video explaining this concept.
If this was helpful, let me know. 🙂
0 - @shashreesamuelPosted over 2 years ago
Hey bruno-candia, good job on completing this challenge. Keep up the good work
Your solution looks great however I think your card needs to be scaled up a bit using
transform: scale()
I hope this helps
Cheers Happy coding 👍
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