 |
Text style
Text Color
to set the color of the text we can use the color property
a color is most often specified in CSS by:
- a HEX value -
like "#0000ff"
- an RGB value -
like "rgb(0,0,255)"
- a color name -
like "blue"
Note Note: For W3C compliant CSS: If you
define the color property, you must also set the property
background-color a value.
Text Alignment
The text-align property is used to set the alignment of a text
horizontaly .
Text can be centered in interior of current tag, or aligned to the left
where is the start of element or right where is the and of element, or
justified.
When text-align is set to "justify", each line is stretched so that
every line has equal width, and the left and right margins are straight
(like in magazines and newspapers).
Text Decoration
The text-decoration property is used to Text style
Text Color
to set the color of the text we can use the color property
a color is most often specified in CSS by:
a HEX value - like "#0000ff"
an RGB value - like "rgb(0,0,255)"([1])
a color name - like "blue"
Look at CSS Color Values for a complete list of possible color values.
Note Note: For W3C compliant CSS: If you
define the color property, you must also set the property
background-color a value.
Text Alignment
The text-align property is used to set the alignment of a text
horizontaly .
Text can be centered in interior of current tag, or aligned to the left
where is the start of element or right where is the and of element, or
justified.
When text-align is set to "justify", each line is stretched so that
every line has equal width, and the left and right margins are straight
(like in magazines and newspapers).
Text Decoration
The text-decoration property is used to set or remove decorations from
text.
The text-decoration property is mostly used to remove underlines from
links for design purposes:
It can also be used to decorate text:
Note Note: It is not recommended to
underline text that is not a link, as this often confuses users.
Text Transformation
The text-transform property is used to specify letters in a text is
uppercase or lowercase.
It can be used to turn everything into uppercase or lowercase letters,
or capitalize the first letter of each word.
Text Indentation
The text-indent property is used to specify the indentation of the
first line of a text.et or remove decorations from text.
The text-decoration property is mostly used to remove underlines from
links for design purposes:
It can also be used to decorate text:
Note Note: It is not recommended to
underline text that is not a link, as this often confuses users.
Text Transformation
The text-transform property is used to specify letters in a text is
uppercase or lowercase.
It can be used to turn everything into uppercase or lowercase letters,
or capitalize the first letter of each word.
Text Indentation
The text-indent property is used to specify the indentation of the
first line of a text.
|