Text Styles
background-color: tomato |
Sets the background color for an element |
color: red |
Makes font a specified color |
font-family: Arial, Georgia |
Determines the fonts |
font-weight: bold |
Changes the font to bold |
font-size: 1.5em |
Font Size, em, px, pt |
font-style: italic |
normal, italic, bold, oblique, inherit |
font-weight: bold |
normal, bold, bolder, lighter, 100 - 900 |
font-stretch: expanded |
condensed, expanded, normal, ... |
text-indent: 10px |
Indents the text |
text-overflow: clip |
clip, ellipsis, "text" |
text-shadow: 2px 5px 5px gray |
h-shadow v-shadow blur-radius color |
text-transform: uppercase |
none, capitalize, uppercase, lowercase |
text-align: top |
left, right, center, justify |
text-space: nowrap |
normal, nowrap, pre, pre-line, pre-wrap |
text-decoration |
none, underline, overline, line-through |
text-justify |
auto, inter-word, inter-ideograph, trim, none |
word-break: break-all |
normal, break-all, keep-all |
word-spacing: 3px |
Space between words |
word-wrap: break-word |
normal, break-word |
letter-spacing: 5px; |
Space between letters |
tab-size: 8 |
8, 10px |
|
|
<B></B> |
Bold |
<I></I> |
Italic |
<U></U> |
Underline |
<S></S> |
Strike-thru |
<SUB></SUB> |
Subscript |
<SUP></SUP> |
Super Script |
<PRE></PRE> |
Formatted spaces, tabs, and line feeds |
<XMP></XMP> |
show as HTML (rest of file) |