Design comparison
Solution retrospective
-Just please take a time to look at my code and tell me what i've done wrong
Thank in advance
Community feedback
- @nenadmnePosted almost 2 years ago
main { padding: 10px 10px 10px 10px; padding: 1%; }
1.You are giving 2 padding attributes. If all paddigns are 10px, just write it down once.
2.When you are doing same attribute to more classes like
display:flex
, for example, you could just do it like this:.post-block, .post-section, .introductory-section, main , body { display: flex }
So instead writing it in 5 lines, in 5 different classes, you write it down in single line.Nice project, keep coding =)
Marked as helpful0@HyoganPosted almost 2 years ago@nenadmne Thank you so much for your reply ! I'll try to put it in practice
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