how to center all text in css code example
Example 1: how to center anything inside your container
display: grid;
place-items: center;
height: 100vh;
Example 2: css position element in the middle of a header
P.blocktext {
margin-left: auto;
margin-right: auto;
width: 200px;/*usually works best with a fixed width*/
}
Example 3: center text css
p {
text-align: center;
}