Design comparison
Solution retrospective
I don't have any experience with naming classes. Can you help me for this?
Community feedback
- @RenszCamachoPosted almost 4 years ago
Hi, do-Va.
There are only two hard problems in Computer Science: cache invalidation and naming things — Phil Karlton
I recommend you, learn BEM too, it will make your life easier. You can check this video. You Probably Need BEM CSS in Your Life (Tutorial) or check the BEM website about naming Naming
I hope, it helps.
Happy coding🧑💻
2 - @rizfirsy-ghPosted almost 4 years ago
Hi Dova, to write a class we just needed to write a simple class name that represent the contents of the element. Example: When we have a div element that contain a fish image, we can give it a class name fish-image.
<div class="fish-image"> </div>1
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