blog-preview-card using css flexbox

Solution retrospective
would like to make use of the CSS framework to build because of the responsive pattern
What challenges did you encounter, and how did you overcome them?it is really nice to master flexbox to an extend
What specific areas of your project would you like help with?learn the major area to use
Please log in to post a comment
Log in with GitHubCommunity feedback
- @30vam
To center the card using flexbox you can do this: body { display: flex; //Makes the page act like a flexbox instead of a block element justify-content: center; //Centers the content on the main axis (horizontally) align-items: center; //Centers the content on secondary axis (which is vertical by default) min-height: 100vh; //Sets the page height to browser viewport height }
I think you could also simply use the <img> tag with a source attribute to import the card banner instead of copying the entire svg code in index.html file.
Marked as helpful
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