Design comparison
Solution retrospective
I feel like I wrote a lot of code in CSS. If you know how could I shrink it please let me know. Also any tip is very grateful.
Community feedback
- @gelizabethPosted almost 4 years ago
Hi! It's okay about amount of CSS :D You can read about CSS shortcuts, these allow you to write
background: url(../assets/images/bg-desktop.svg) no-repeat, var(--violet)
instead ofbackground-image: url(../assets/images/bg-desktop.svg); background-color: var(--violet); background-repeat: no-repeat;
ormargin: 3rem 0 5rem 4.5rem
instead ofmargin-top: 3rem; margin-left: 4.5rem; margin-bottom: 5rem;
Happy coding and have a nice day!
0@paiputPosted almost 4 years agoThank you so much @gelizabeth!! I'll keep that in mind for the next challenges
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