CSS Text Attributes #Part 4
text -decoration
Adds decoration to an elements text. none, underline,overline, line- through, blink.
vertical-align
Determine an elements vertical position, basline, sub, super,top,text-top, middle, bottom,text-bottom, also percentage of the elements height.
Text-transform
Applies a transformation to the text. Capitalize, uppercase, lowercase or none.
Text-align
Align Text within an element. Left, right, center, or justify.
Text-indent
Indents the first line of text. A percentage of the elements width or length.
HTML Code
<h1> Code Pocket</h1>
<h2>Code Pocket</h2>
<h3>Code Pocket</h3>
<h4>Code Pocket</h4>
<h5>Code Pocket</h5>
CSS Code
<style>
h1
{
text-decoration: underline;
}
h2
{
text-align: center;
}
h3
{
text-transform: uppercase;
}
h4
{
vertical-align: middle;
}
h5
{
text-indent:50%;
}
</style>