center a paragraph in a block css code example
Example 1: inline block align center
.parent {
display: flex;
justify-content: center;
align-items: center;
}
.child {
display: inline-block;
}
Example 2: how to center an ing with block display
img{
display: block;
margin-left: auto;
margin-right: auto;
}