Submitted 4 months ago
Blog preview card using HTML and CSS
@hieutrantrong21520859MMCL21
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
- Account deleted
I was reviewing your code and noticed an opportunity for improvement.
Here's my suggestion:
- 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 aboutFlexbox
https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox<author>
is invalid HTML Element. instead you can use the attributerel="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
Semantics HTML
you can read mdn docs here if you dont know them already https://developer.mozilla.org/en-US/docs/Glossary/Semantics
0Account deleted@hieutrantrong21520859MMCL21 Your welcome.
0 - use desplay flexbox for
Please log in to post a comment
Log in with GitHubJoin 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