Design comparison
SolutionDesign
Solution retrospective
I used BEM conventions for naming classes. Can anyone check if it is correct or not? I was confused about this part :
<div class="stats-card__stats-container">
<div class="stats-card__stats">
<h2 class="stats__heading">10k+</h2>
<p class="stats__text">companies</p>
</div>
Here, in naming the stats__heading class, should I have used stats-card-stats__heading or the one written in the code is correct.
Thanks for the help. If you have any other suggestions mention them as well.
Community feedback
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