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

Blog preview card using HTML and CSS

@hieutrantrong21520859MMCL21

Desktop design screenshot for the Blog preview card 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?

My website is mostly the same to the original template.

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

I have to remind and also search for lessons of CSS.

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

Designing and aligning items.

Community feedback

@weldu0

Posted

I was reviewing your code and noticed an opportunity for improvement.

Here's my suggestion:

  1. use desplay flexbox for body like this:
    body {
      display: flex;
      flex-direction: column;
      justify-content: center;
      height: 100vh;
    }

this will make it more easy to center the card-conatiner. if you want to learn about Flexbox https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox

  1. <author> is invalid HTML Element. instead you can use the attribute rel="author" like this:
<a rel="author">Author Name</a>

https://stackoverflow.com/questions/7290504/which-html5-tag-should-i-use-to-mark-up-an-author-s-name

  1. Semantics HTML you can read mdn docs here if you dont know them already https://developer.mozilla.org/en-US/docs/Glossary/Semantics
0

@hieutrantrong21520859MMCL21

Posted

@weldu0 Thank u very much!

0

@weldu0

Posted

@hieutrantrong21520859MMCL21 Your welcome.

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