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

Product Review Card Component

P
peipeix2 110

@peipeix2

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Any feedback is welcomed! :-)

Community feedback

Riki Wendri 1,380

@F4YY

Posted

Hi @peipeix2,

Congratulation for successfully completing the challenge, nicely done...

However, when on mobile screen view the image's not showing. In your code, the src attribute for the mobile screen size is specified as src="../images/image-product-mobile.jpg". The use of the .. in the path indicates that the image file is located in a directory one level above the current directory.

Try using src="./images/image-product-mobile.jpg" is the way to specify the relative path to the image file when it is located in the images folder directory within the same directory as the HTML file. By using this path, the browser will display the image-product-mobile.jpg.

Hope that could be Helpful. Keep happy coding...

Marked as helpful

0

P
peipeix2 110

@peipeix2

Posted

Hi Riki@F4YY,

Thank you for pointing out! I've missed that completely and will definitely look into it.

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