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 preview card component

P

@Ericphoto35

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

LDX_DEV 190

@ledoux25

Posted

Hey buddy Do not use pixels while defining a container like the body instead of putting those px should do this

body{
      height : 100vh;
      width: 100%
}

instead of creation a `<div class = "center">' you should use the element <main></main> as a container

apart from that you did great

Goodluck on your coding journnee

Marked as helpful

0

P

@Ericphoto35

Posted

thank you @ledoux25

0
Enis Kerti 590

@eniskrt

Posted

Well done!

If you want to get the card in the middle of the screen, youcan use flex structures in the body tag. So:

body{ display:flex; justify-content:center; align-items:center;

Good code.

Enis...

Marked as helpful

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