1input[type="text"]::placeholder {
2
3 /* Firefox, Chrome, Opera */
4 text-align: center;
5 }
6/*Must include type="text" in HTML*/
1<div style="text-align:center">Dieser Text wird zentriert.
2<p>Ebenso dieser Paragraph.</p></div>
3
1<!-- Code By T64 -->
2
3<!-- Solution -->
4<p style="text-align: left">This text is aligned to the left side of the page</p>
5<p style="text-align: center">This text is aligned to the center of the page</p>
6<p style="text-align: right">This text is aligned to the right side of the page</p>
7
8<!-- Output -->
9This text is aligned to the left side of the page
10
11 This text is aligned to the center of the page
12
13 This text is aligned to the right side of the page
14
15<!-- Website: https://installation.cf -->
1you just need to add this line of code in your tag(<p>; h1, h2, td etc):
2
3<p align="center">sample text<p/>
1With the aid of internal or external CSS you can center text with:
2
3text-align: center;