This exercise says that align is a relative term. What does this mean?


#1

Question

This exercise says that align is a relative term. What does this mean?

Answer

As you learned in units 2 and 3, every element on a page can be thought of as a box.
The text-align property aligns the inner content of a block element relative to itself. For
Example, consider the following code snippets:

```
Text
``` ``` div { text-align: center; } ```

This code will align the anchor element within the center of its containing div. Note, depending on the width of the div itself, the anchor tag might not necessary be placed in the center of the web page. In other words, the alignment is relative to the containing element.