Design comparison
Solution retrospective
-
This was honestly very easy due to my use of flexbox but I still couldn't make it responsive
-
The clutter
-
How can I reference specific elements without cluttering the element with style, for example without using class as well.
Community feedback
- @kwngptrlPosted over 1 year ago
With regards to your third question: "How can I reference specific elements without cluttering the element with style, for example without using class as well."
You could move most of the inline css in your index.html to your style.css since there's a lot of duplication, like so:
.first, .second, .third { background-color: hsla(333, 80%, 67%, 0.1) } .align > img { width: 38px; border-radius: 50%; margin-right: 20px; } h5 { font-size: 15px; font-weight: 500; }
and so on...There are still other inline css that you can move into style.css. You can refer to CSS Selector Reference for more info.
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