Help:Wiki University Wikitext--Alignment

Centering titles
Often you may want to center a title rather than allow it to remain in the default position on the left. So how do you center a title? We use the attribute:
 * text-align:center

Here is the coding with a border so you can see the alignment: This title is centered
 * This attribute works for header, paragraph and div tags.

Right or Left
This alignment attribute has also left and right like so: This title is on the right This title is on the left
 * Text-align:right
 * text-align:left

 Exercises Check your answers >
 * Take this title: "I Love the Wikitext" and put it on the center of the page.
 * Take this title: "I Love the Wikitext" and put it on the right of the page.
 * Take this title: "I Love the Wikitext" and put it on the left of the page.

 Quick Quiz
 * Text-align only works in header tags
 * A. True
 * B. False


 * Text-align cannot put a title to the left because that is the default position.
 * A. True
 * B. False


 * Text-align will work in header, paragraph and div tags
 * A. True
 * B. False

Check your answers >