text-align
property.
text-align: justify;
causes all lines of text except the last line to meet the left and right edges of the line box.
text-align: center;
centers the text
text-align: right;
right-aligns the text
And text-align: left;
(the default) left-aligns the text.
h4
tag's text, which says "Google", to the center. Then justify the paragraph tag which contains information about how Google was founded.
h4
tag to set it to center.
testString: assert($('h4').css('text-align') == 'center', 'Your code should use the text-align property on the h4
tag to set it to center.');
- text: Your code should use the text-align property on the p
tag to set it to justify.
testString: assert($('p').css('text-align') == 'justify', 'Your code should use the text-align property on the p
tag to set it to justify.');
```
Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.