Answers for "how to align text in css"

CSS
20

how to center text in css

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

css text align center

/* Character-based alignment in a table column */

text-align: center;

/* The inline contents are centered within the line box. */
Posted by: Guest on February-27-2021
7

center text in div container

text-align: center
Posted by: Guest on June-01-2020
6

text align css

p{
    text-align:center;/*values: center, left, right, etc...*/
}
Posted by: Guest on February-23-2020
2

css text align right

body {
  text-align: right;
}
Posted by: Guest on April-09-2020
0

how to align text in css

/*style-part*/

.center{
		text-align:center;
	   }
<!--html-part-->

<p class="center"> How to text align </p>
Posted by: Guest on July-26-2021

Browse Popular Code Answers by Language