Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 15 days ago

Article Preview Component | Modern CSS | Fluid Responsive Design

P
Alex•180
@Sprees
A solution to the Article preview component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What challenges did you encounter, and how did you overcome them?

During this project I learned how to use object-fit and object-position, although I would love to know how others went about this, as I don't like my final result.

I also learned it can be difficult to style an SVG that is being used in an <img>. I ended up using filter: brightness(100); to change the socials icon button color when active.

What specific areas of your project would you like help with?

I used an img tag for the primary image in the article component and I've learned that I'm not very good at manipulating images in CSS. I would love some feedback and/or tips about this.

If anyone could give me tips on how to properly handle color changes with SVG images, I'd appreciate it!

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Alex's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License