Article preview component with flexbox and JS

Solution retrospective
Feel like there is a more efficient way to do the JavaScript and CSS, I think there was no reason for the extra IDs, could have just used "getElementsByClassName".
What challenges did you encounter, and how did you overcome them?How to deal with the changing screen size, turns out all I had to do is add a "resize" event listener for the window ¯_(ツ)_/¯
What specific areas of your project would you like help with?Any remarks are welcome!
Please log in to post a comment
Log in with GitHubCommunity feedback
- @Alex-Archer-I
Hey, another challenge, congrats!
I prefer
querySelector
, seems to me a bit more flexible =)Genuine question: is there some advantages to use js resize vs media queries or you just wanted to practice it?
Marked as helpful
Join 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