CSS: how to display a header in the center of the column in css Example

By

CSS Example: This is the "how to display a header in the center of the column in css" Example. compiled from many sources on the internet by SimpleTutorials.org

how to display a header in the center of the column in css

P.blocktext {
    margin-left: auto;
    margin-right: auto;
    width: 8em
}
...

This rather...

how to display a header in the center of the column in css

P { text-align: center }
H2 { text-align: center }



* Summary: This "how to display a header in the center of the column in css" CSS Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others