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

Stats Preview Card Component - Mobile First, Flexbox and SASS

P

@claire-ca

Desktop design screenshot for the Stats preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


I'm fairly pleased with the end result, but I have to admit I did find this challenge harder than I thought I would. I'm not good with images and making them responsive - it's something I need more practice at.

On my mobile site I notice there is a small purple bar just under my image and I'm not sure where that is coming from and how to get rid of it? If anyone could shed some light on that I would be very grateful.

Thanks!

Community feedback

@aharmon413

Posted

Regarding the small purple bar -- I had a similar issue when I was doing this challenge. Setting the display of the image to block (instead of the default inline) solved it for me so it's worth a shot. This was the Stack Overflow post that helped me out: https://stackoverflow.com/questions/31444891/mystery-white-space-underneath-image-tag

2

P

@claire-ca

Posted

@aharmon413 Thanks Amber! That solved it for me. Sometimes it's the simple things that trip me up.

1

@aharmon413

Posted

@claire-ca You're welcome, and same! I spent way too long tinkering with that issue, haha.

1
P

@claire-ca

Posted

@aharmon413 Haha, it's good to know I'm not alone!

0

@sergioreynoso

Posted

Good job! As an extra challenge, try adding the overlay as a pseudo element in css instead of using a div. This would make your image components more modular.

1

P

@claire-ca

Posted

@sergioreynoso Thanks for the advice Sergio! I've updated my solution now to use a pseudo element instead.

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