This is Sasha and thanks for joining me here for another CSS training video. Today, what I’d like to do is share with you the text-align property. So let’s take a quick look.
Sometimes you want to align your text whether it’s to the left, right or center and that’s what the text-align property does. So if we go ahead and type out text-align, typically what happens is the left side or the left align is already working.
--------------------- HTML CODE --------------------------------------- CSS CODE ------------------ body {background: #ccc;} h3 { font-size: 30px; font-family: gotham; text-align: center; }Backstageincome : Learn to grow a business and evolve your life! These are my books and products
These are my books and products
These are my books and products
Thank you for visiting

Let’s just say you want these H3 paragraph tags to be in the center so I’ll go ahead and just type in center, save it and you can see what’s happening over there. If I want them align to the right, I can also do that. So you can see how this property works.
--------------------- HTML CODE --------------------------------------- CSS CODE ------------------ body {background: #ccc;} h3 { font-size: 30px; font-family: gotham; text-align: right; }Backstageincome : Learn to grow a business and evolve your life! These are my books and products
These are my books and products
These are my books and products
Thank you for visiting

Initially, things that are inherited, if I don’t have that property, it’s going to be left-aligned. That is normal. But if you do like something centered, you could go ahead and type out center and there you go. That’s where the text is center-aligned and that’s how the text alignment works.