Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Article Preview with Flexbox

Steven 150

@Steven-Ang

Desktop design screenshot for the Article preview component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

@sakthivel155

Posted

Hi @Steven-Ang,

I suggest optimizing your code by using the classList.toggle() method instead of individually adding or removing classes. This approach simplifies the code and enhances readability.

0
a-yemisi 130

@a-yemisi

Posted

Looks alright

Well done.

0

Please log in to post a comment

Log in with GitHub
Discord logo

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