How to center a div block using styles

Today, I came across the problem of having to center a div block on a web page without having all its content being centered. I thought of using text-align: center; but then all the div inner elements would have inherited that style, and that is not what I wanted. I wanter the text inside the […]

READ MORE