- Styling ALL text on a page
- Styling some text on a page
- Font-family
- Font-size
- Color
- Font-weight (bold text)
- Font-style (italic text)
- Text-decoration (underlined text, etc.)
- Letter-spacing
- Text-transform (uppercase or lowercase text)
- Text-align
|
Self-destructive Layouts
@vampirefreaks.com |
|
Text editing (with CSS)
Content:
Styling ALL text on a page: You can change the general font on an entire page by using a CSS stylesheet, like this:
You can also make more advanced changes, such as setting the font-weight, font-style and text-decoration:
Styling some text on a page: Styling an entire paragraph:
Styling a few words in a text:
By using a "class" and a CSS stylesheet, you can edit several different parts of a text at once:
Or you can style the text in a part of your profile that has already been assigned a class, for example your userinfo:
Font-family The font-family property specifies what font the text should be rendered as. You can specify several different fonts, in prioritized order, by separating the fonts with a comma. This is especially important if you want to use a font that is not considered "websafe". [Click here] to see a list of websafe fonts.
Font-size The font-size property specifies what size a font should be rendered as.
Color: The color property specifies what color a font should be rendered as. You can either use a hex code or a valid color name.
Font-weight: The font-weight property set the boldness of a text. "Normal" is the default value for regular text, "bold" is the default value for links.
Font-style: The font-style property set whether a text should be normal, oblique or italic (although there isn't much difference between the oblique and italic style when it comes to CSS).
Text-decoration: The the text-decoration property sets whether a text should be underlined, overlined or struck out. "Blink" is also a possible value, however this text-decoration will not show in Internet Explorer.
Letter-spacing The the letter-spacing property sets the spacing between the letter in a text.
Text-transform: The the text-transform property can be used to control the rendering of uppercase and lowecase text. "Lowercase" will render all letters as lowercase and "uppercase" will render them as UPPERCASE, no matter how you originally typed them. "Capitalize" will capitalize every single word in a text.
Text-align: The the text-align property specifies whether a text should align to the left, right or center. This will only work on "block-level" elements (elements that have a line-break before and after them), such as div's, tables and paragraphs.
|