@MalexLucero
Posted
Enclosing the image, title, and text into an article or div element will help. You can then center the article/div element without worrying about the image.
<article>
<img src="yourImg.jpg" />
<h1>card title</h1>
<p>card text</p>
</article>
In the CSS, you could position the article element in the center by adding flex box to the body.
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
css-tricks.com/snippets/css/a-guide-to-flexbox/ Here's my favorite guide on flexbox. :)
Keep it up!
@subodh1221
Posted
@MalexLucero Thank you sir ,i will try it