@AdhamElSamahy909
Posted
Instead of applying text-align: center;
to the p
and the h2
, you can apply it the parent container.
@RehanKhaz
Posted
@AdhamElSamahy909 HOw
@RehanKhaz
Posted
@AdhamElSamahy909 HOw
@AdhamElSamahy909
Posted
@RehanKhaz Just write text-align: center;
in the .main class. By default , the p and the h2 will inherit it as they're inside the container with the main
class.
Marked as helpful