Can the text align-property only be used to align text or can we use it to align other content as well?


#1

Question

Can the text align-property only be used to align text or can we use it to align other content as well?

Answer

The text-align property is used to align the inner content of a block element. This means that in addition to aligning text, it can also be used to align inline or inline-block elements within a containing div.

You will learn more about inline, inline-block, and block level elements in the next exercise.


FAQ: Learn CSS Selectors Visual Rules - CSS Visual Rules - Text Align I
#2

text-align: justify; what this command does?


#3

for that we have documentation:

https://developer.mozilla.org/en-US/docs/Web/CSS/text-align

it gives both an explanation and an example you can play with, the combination of this should make it clear? Learning to read and understand documentation is a very good skill to have as programmer