CSS Aligning Text

Sometimes you might need to align your title or a paragraph in a certain way that makes your web pages look a lot nicer.
Here's the code on how to do it:

p {text-align: center} Align text in the center of the screen

p {text-align: left} Align text to the left of the screen

p {text-align: right} Align text to the right of the screen

p {text-align: justify} Align text on both the left and right side of the screen

The effects of each one is similar to what it would be like when you align your text in a word processing software.

To align the text of all p tag with a specific class name, use the code:
p.class {text-align: alignment}, where class is the class name that you've given to some of your paragraphs and alignment is how you want to align your text.

To align the text of all p tag with a specific identifier name, use the code:
p#identifier {text-align: alignment}, where identifier is the identifier name what you've given to one of your paragraph and alignment is how you want to align your text.

Next: CSS Changing Text Background

Template Design | Elque 2007