Design comparison
Community feedback
- @Lemon-stackPosted 12 months ago
Congratulations on the completion of this challenge project👍 Heres some areas i think should be noted in your code : 🎯 consistency in your attribute and property declaration: for example, in your image, you declared the border radius as...
.image{ border-top-left-radius: 15px; border-top-right-radius: 15px; border-bottom-left-radius: 15px; border-bottom-right-radius: 15px; margin-bottom: 20px; } Which could be also be written In its shorthand property as :
.image{ border-radius: 15px; } 🎯 more important to note that, in small projects like this, you don't really need to give the image a class. It could be declared like this :
img{ border-radius: 15px; } Hope you found this helpful😊 Either ways... Choose what works for you 🌟
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