css text in the middle of the page code example
Example 1: 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 2: center text in div container
text-align: center
Example 3: how to assign something in center inside a div
IMG.displayed {
display: block;
margin-left: auto;
margin-right: auto }
...
<IMG class="displayed" src="..." alt="...">