Grow your business, income, & life.

Behind-the-scenes training to grow your business and generating income. Strategies and mindsets that work.

CSS3 Tutorial for Beginners: 17 Text Align Property (Vertical, Horizontal, Center)

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.

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.

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.