Design comparison
SolutionDesign
Community feedback
- @Lescano713Posted 4 months ago
You can group all the colors and font sizes using the :root selector. This makes it easier to change the styles later.
I noticed you call the p and h4 selectors within each div. Another approach is to target the div, h4, and p directly, as they share the same properties. If you need to exclude a specific div, you can use the CSS :not selector. Alternatively, consider using <section> instead of div for the cards, and <header> instead of the first div.
Marked as helpful0@tannguyen2003Posted 4 months ago@Lescano713 Thank for your feedback. That so necessary with me. I got it
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