@correlucas
Posted
👾Hi Uzair, congrats on completing this challenge!
I saw your solution preview site and I think it's already really good. Here’s some tips for you to improve it:
1.You’ve used px
as the unit for sizes but the problem with pixels is that its not optimized for multiple devices and screens. So a good fit its to use rem
or em
that have a better performance and make your site more accessible between different screen sizes and devices. REM
and EM
does not just apply to font size, but to all sizes as well.
2.To make your CSS code easier to work you can create a single class
to manage the content that is mostly the same for the 3 cards (paddings, colors, margins and etc) and another class to manage the characteristics that are different (colors and icon), this way you'll have more control over then and if you need to change something you modify only one class.
✌️ I hope this helps you and happy coding!
Marked as helpful
@uzairK134
Posted
@correlucas I was wondering how many ways I could have made my code more efficient so I put all the similar properties under the same h1, p, button tags but yes I do feel using the same class for each would be better as you mentioned.