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

3 column preview card

CharlieDW 20

@CharlieDW

Desktop design screenshot for the 3-column preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

That I was able to finish the project in a decent amount of time. I am not new to coding, but have been mainly doing ServiceNow work for the last years and am rusty to say the least.

Besides that I am happy to re-discover how much fun I have with this kind of work

What challenges did you encounter, and how did you overcome them?

So far no challenges encountered. I do want to work with SCSS for next projects in order to structure my css file a bit better.

What specific areas of your project would you like help with?

Any feedback is welcome! Thank you very much in advance :)

Community feedback

@AkoToSiJeromeEh

Posted

Hi there! Great work out there! I noticed that the 3 column preview card is not vertically aligned, and I recommend adding CSS properties to the body or specific element , such as d-flex and its related properties. Additionally, it's important to include min-height or height for proper alignment. By adding this to the body properties, you can achieve centering of the 3 column preview card. . I hope this suggestion helps and works for you. Happy coding!

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 15px;
  font-family: 'Lexend Deca';
  font-weight: 400;
  background: var(--very-light-gray);
  display: flex; // add this
  align-items: center; // add this 
  justify-content: center; // add this
  min-height: 100vh; // add this
}

Marked as helpful

0

CharlieDW 20

@CharlieDW

Posted

Hi @AkoToSiJeromeEh , thanks for the feedback! I will indeed have a look at this. I ended up adding a <main> tag, so will need to work on a different solution for the vertical alignment :)

1
CharlieDW 20

@CharlieDW

Posted

Hi @AkoToSiJeromeEh, so I ended up doing the old "centering" with absolute position:

.container {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
}
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