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

CSS HTML product preview card

Juliaβ€’ 60

@juliavilbert

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


Guys this is my third project and I still couldnt figure out how to eliminate that line under the image, feedback welcome! Do I need to use <main> the way i used it? How to make that main image fit the whole content? thanks :)

Community feedback

Gio Curaβ€’ 650

@GioCura

Posted

Hi! Add "vertical-align: bottom" to your ".image img" and the empty space will disappear. πŸ™‚

Marked as helpful

1

Juliaβ€’ 60

@juliavilbert

Posted

@GioCura Thank you friend! :)

0
Francisco Carrilloβ€’ 5,540

@frank-itachi

Posted

Hello there πŸ‘‹. Congratulation for completing the challengeπŸ‘!

I have some suggestions about your code that might interest you.

HTML πŸ“„:

  • Since the mobile design has a different image, you can use the <picture> tag that allows you to interchange the images depending of the viewport size. Red more about this awesome tag here.
  • Get rid of the <div class="container"> because it’s having no effect to the descendant element. Keeping the body element rules you already have will work as well.

CSS 🎨:

  • You can also use the text-transform: uppercase; property to make the perfume word appear in upper case even though you typed it in lower case in the HTML file.

I hope you find it useful! πŸ˜„ Above all, you did a good job!

Happy <coding /> 😎!

Marked as helpful

1

Juliaβ€’ 60

@juliavilbert

Posted

@frank-itachi thank you friend!!

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