The text-align attribute determines how text in an element is aligned horizontally.
In CSS, the text-align property is used to specify the horizontal alignment of text in an element, i.e., it is used to align content horizontally within a block element or table-cell box. It's used to inherit a property from the parent element's property value to an element.
In CSS, utilise the text-align property and set the value to "centre" to centre text. Let's begin with a simple example. Let's say you have a text-only web page that you want to focus. To target every element on the page, you may use the CSS universal selector (*) or the type selector body.
The default setting is left. The content is aligned to the left. right — The content is aligned to the right. Between the left and right margins, the content is centred.
When you justify text, you add space between words so that the two margins are aligned on both sides of each line. The paragraph's final line is oriented to the left.
Learner's Ratings
4.4
Overall Rating
70%
15%
6%
4%
5%
Reviews
A
Ajay Kumar
4
use full
A
Amol Somnath Chilarge
5
very good course . needs some improvement like adding css grid and flex box
L
Lalit Borad
5
(●'◡'●)(●'◡'●)(●'◡'●)(●'◡'●)
M
Manik Singha
5
All courses of LearnVern is very similar way to understand for a student, it's a very good for learner. And specially CSS course every point particularly covered by this course.
M
Manik Singha
5
All courses of LearnVern is very similar way to understand for a student, it's a very good for learner. And specially CSS course every point particularly covered by this course.
M
Manik Singha
5
very good explanation for learn a beginner.
V
Vishal Kumar
5
Thank you so much sir
R
RAJVEER
5
This course is very help full and great learner .
S
Shubham Prabhakar Shinde
5
ONE OF THE BEST COURSE AND BEST THING IT IS TOTALLY FREE FOR YOU. IF YOU HAVE SKILLS THEN DONT NEED ANY CERTIFICATES TO YOU.
N
Nirmal Maurya
4
Thanks sir
I clear all of my doubts because of you 🙏🙏🙏
Share a personalized message with your friends.