Design comparison
Solution retrospective
How organize and clean my code was? Is my code a clutter, or inefficient? What could I've done better next time? What should I acknowledge in order to up my skills in CSS?
By the way, if the Web URL has problem then it's my bad, because this is my first time use Github. And this is my 2nd attempt at upload this solution, since the web crashed somehow...
Community feedback
- @daniloarcidiaconoPosted over 2 years ago
Hello, here are some things that come to mind:
-
Use BEM notation consistently to name your CSS classes (block__element--modifier);
-
The font is imported in HTML but it's not used in CSS;
-
Do not select h1, h4, p tags directly. Either add a class to such tags or use a CSS combinator to target them;
-
Use max-width for the card. Also don't set a fixed height.
-
Use CSS custom properties to centralize constants, like colors;
-
Put your CSS files in a dedicated folder;
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