<p style="font-family:'times New Roman', Arial, verdana, 'sans serif';">
יום שני, 13 באפריל 2009
6.1 Font-family
<p style="font-family:'times New Roman', Arial, verdana, 'sans serif';">
6.2 font-size
Td{font-size:16pt;}
Description | Value |
Sets the size of the font to different sizes, from xx-small to xx-large. Default value: medium | xx-small |
Sets the font-size to a smaller size than the parent element | smaller |
Sets the font-size to a larger size than the parent element | larger |
Sets the font-size to a fixed size | length |
Sets the font-size to a % of the parent element | % |
6.4 Font-weight
Description | Value |
Default. Defines normal characters | normal |
Defines thick characters | bold |
Defines thicker characters | bolder |
Defines lighter characters | lighter |
Defines from thin to thick characters. 400 is the same as normal, and 700 is the same as bold | 100 |
6.5 Line-height
p {line-height: 1.4}
Value | Description |
normal | Default. Sets a reasonable distance between lines |
number | Sets a number that will be multiplied with the current font-size to set the distance between the lines |
length | Sets a fixed distance between the lines |
% | Sets a distance between the lines in % of the current font size |
6.6 font-variant
6.7 font-stretch
- Ultra-condensed
- extra-condensed
- condensed
- semi-condensed
- semi-expanded
- expanded
- extra-expanded
- ultra-expanded
P{font: bold 14pt/16pt Arial,verdana,'sans serif'}
P{font:12pt 'times new roman',serif, Paris;}
Value | Description |
normal | Default. Sets the scale of condensation or expansion to normal |
wider | Sets the scale of expansion to the next expanded value |
narrower | Sets the scale of condensation to the next condensed value |
ultra-condensed | Sets the scale of condensation or expansion of the font-family. "ultra-condensed" is the most condensed (narrowest) value, and "ultra-expanded" is the most expanded (widest) value |
8.1 סגנונות לטקסט - מבוא
| Property | Description | Values | דפדפן | ||
| IE | F | N | |||
| Sets the color of a text | color | 3 | 1 | 4 | |
| Sets the text direction | ltr | 6 | 1 | 6 | |
| Sets the distance between lines | normal | 4 | 1 | 4 | |
| Increase or decrease the space between characters | normal | 4 | 1 | 6 | |
| Aligns the text in an element | left | 4 | 1 | 4 | |
| Adds decoration to text | none | 4 | 1 | 4 | |
| Indents the first line of text in an element | length | 4 | 1 | 4 | |
| Controls the letters in an element | none | 4 | 1 | 4 | |
| Sets how white space inside an element is handled | normal | 5 | 1 | 4 | |
| Increase or decrease the space between words | normal | 6 | 1 | 6 | |
| text-shadow | | none | | | |
| unicode-bidi | | normal | 5 | | |
8.2 Letter-spacing
p {letter-spacing: 12px}
| Value | Description |
| normal | Default. Defines normal space between characters |
| length | Defines a fixed space between characters |