Answers for "How to center a h1 in css"

0

center h1 css

h1 {
    width:500px;
    margin: 0 auto;
    background: gray;
    text-align: center;
}
Posted by: Guest on May-09-2020
0

html h1 left align

<h1 style="text-align:center">Titulo 1</h1>
<h2 style="text-align:left">Titulo 2</h2>
<h3 style="text-align:right">Titulo 3</h3>
<h4 style="text-align:justify">Titulo 4</h4>
<p>...</p>
Posted by: Guest on October-14-2020
21

how to center text in css

.class {
	text-align: center;
}
Posted by: Guest on February-15-2020

Browse Popular Code Answers by Language