/docs/MyDocs

To get this branch, use:
bzr branch http://darksoft.org/webbzr/docs/MyDocs

« back to all changes in this revision

Viewing changes to Web/html/css.txt

  • Committer: Suren A. Chilingaryan
  • Date: 2009-04-09 03:21:08 UTC
  • Revision ID: csa@dside.dyndns.org-20090409032108-w4edamdh4adrgdu3
import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
0. /* ... */ - �����������
 
2
1. Usage:
 
3
    a. <span style="color: red; text-align: center;">...</span>
 
4
    b. 
 
5
        <style type="text/css">
 
6
            <!--
 
7
                .class1 { color: red; }
 
8
                .class2 { color: blue; }
 
9
            --->
 
10
        </style>
 
11
        <span class="class1">...</span>
 
12
    �. <link rel="stylesheet" type="text/css" href="style.css" title="..."/>
 
13
 
 
14
    ���������� (���� ���� ���������������): c->b->a
 
15
        
 
16
2. ��������������� ����������� �����
 
17
    <!---
 
18
        p{color; red;}
 
19
 
 
20
3. ���������� ��������� ������� �����
 
21
    .class1,.class2 {color: red;}
 
22
 
 
23
4. ����� ������� ��� ����� ��������� ������ ��� ��������� ������� ('<p>' ���)
 
24
    p.small = {...};
 
25
   �����
 
26
    <p class=small> ... </p>    - OK
 
27
    <td class=small> ... </p>   - ����� small �� ����� �����������
 
28
 
 
29
5. ������ ������
 
30
    a:hover     - ������ � ������, ����� ������ ��������� ��� ���
 
31
    a:active    - ���� ������ ��� ���� ������������
 
32
    a:focus     - ������� ������
 
33
    a:link      - ������������, ��� �� �������������� ������
 
34
    p:first-letter      - ������ ����� ������
 
35
 
 
36
 
 
37
������
 
38
------
 
39
    font-weight:        [bold|normal|number]
 
40
    font-style:         [normal|italic|oblique]
 
41
    font-size:          ###
 
42
    font-family:        [arial|helvetica|sans-serif]
 
43
    color:              #RRGGBB
 
44
    background-color:
 
45
    background:         <url> (���� � ���������)
 
46
 
 
47
������
 
48
------
 
49
    text-align:         [left|right|center|justify]
 
50
    text-indent:        ### (������ ������� ������)
 
51
    text-height:
 
52
    letter-spacing:
 
53
    padding-[left|right|top|bottom]     ������ ������
 
54
    margin-[left|right|top|bottom]      ������ �������
 
55
 
 
56
Other
 
57
-----
 
58
    display:    [none]          ������� ������
 
59
    cursor:     [hand|...]      ��� �������
 
60
    
 
61
�������
 
62
-------
 
63
�����:  #RRGGBB ��� <standard color name>
 
64
 
 
65
������: 
 
66
    90%, 1pt (������), 1pc (����), 1px (�������), 1in (�����)
 
67
    larger, smaller, xx-small, x-small, small, medium, large, x-large, xx-large
 
68
    em (c������ ������ ����� 'm'), ex ( -|- 'x'), cm, mm 
 
69