My challenge for this project was to build out this blog preview card component and get it looking as close to the design as possible in only 30 minutes.
I was able to complete the component in vanilla HTML and CSS in just 29 minutes. Success!
I took another 10 minutes to create this readme and deploy the site to Netlify.
If you are wondering what you can improve in your solution:
you could add padding on paragraps, it will look much better.
The second thing is to center the card in the middle of the page adding min-height:100vh on the body and use for example display:flex and center it with justify-content: center and align-items : center or use display:grid and center it with place-items:center.
Nice work! I thought that I would offer you some advice.
If you want to center your card, use display: flex along with justify-content: center and align-items: center on the body tag, and make sure it's at least 100vh. For example, set min-height: 100vh.
You can use a CSS selector with the hover pseudo-class like this: h2:hover. It makes the heading change color when you hover over it:
In response to your question, it's considered good practice to specify which properties you want to include in the transition. By default, the transition affects all properties.