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

html and css foundations

@Dhananjaysutwane

Desktop design screenshot for the Blog preview card coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

@Shaimaa12319

Posted

Hello @Dhananjaysutwane!

Your project looks very good!

You can center the card like this:

  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);

and change the height from 55 to 75:

height: 75%;

Hope it helps!

Other than that, great job!

0
Enis Kerti 590

@eniskrt

Posted

Good job, but there is something to improve your skills.

body{
    min-height:100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

You can use this block to get the card in the middle of the page. Also you can give your main-section a max-width property not to expand too much.

Good code...

Enis

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