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

Responsive Article Preview Component using HTML, CSS & Javascript

Lpz 570

@Zepolimer

Desktop design screenshot for the Article preview component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


First time I use Javascript function on a website (toggle onclick). Let me know if I can improve my code (:

Community feedback

JK 345

@JakubKepak

Posted

Hi Lpz, nice job! you have it almost pixel perfect! 👌👏

I would maybe change position of the image with object-fit property be more like the design (https://css-tricks.com/almanac/properties/o/object-fit/)

anyway, nice work! Keep improving! 🙌

1

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