-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReadme.txt
159 lines (120 loc) · 2.72 KB
/
Readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
Selectors
1.Element h1
2.class .class
3.id #id
Specificity
Order
1.Id 1.Inline
2.class 2.Internal
3.element 3.External
Psuedo Selectors
1. :first-child
2. :nth-child(no.)
3. :last-child
4. :only-child
5. :hover
6. :link
7. :visited
Advance selectors
1.sibling selector e1+e2
2.sbiling class selector e1 ~ e2
3.children ul>li
4.descendent ul li
Attribute Selectors
1.element[attr = value]
2.ele[attr ^= value ] starts with
3.ele [attr $= value] ends with
4.ele[attr *= value] includes
5.ele[attr ~= value] white space
6.ele[attr |= value] includes and starts with
CSS general rule
selector{
//code block
property: value;
}
Colors
1.normal
2.rgb() 0-255
3.hex # 0-F
Background
1.Background: url('path')
2.Background-color
3.Background-size: cover
contain
height width
4.Background-repeat: repeat(default)
no-repeat
Opacity
rgba(r,g,b,a) rgb 0-255; alpha(a) 0-1;
Gradient
1.Linear-Gradient
Background:linear-gradient(direction, color1,color2,.....)
2.Radial-Gradient
Background:radial-gradient(direction, color1,color2,.....)
Units
1.Absolute: cm centimeter
mm milimeter
inch inches
px pixels
pt point
pc 1pc = 12pt
2.Relative: % percentage
em 1em = 16px
rem relative to root
vw view-width
vh view-height
Text Manipulation
1.Text-transform:capitalize
:lowercase
:uppercase
2.text-decoration:none
:underline
:line-through
:overline
3.text-align:center;
:left
:right
:justify
Font Manipulation
1.font-family:'times new roman'
2.font-weight:0-600
3.font-style:italic
:oblique
4.font-style:px
CSS Box Model
1.content
2.padding:top right bottom left;
3.border :size style color
4.margin-side:
Display
Float
Flex-Box
display:flex;
1.Container
2.Item
Container
1.flex-direction:row (default)
:column
:row-reverse
:column-reverse
2.flex-wrap:nowrap(default)
:wrap
3.justify-content:flex-start (left)
:flex-end(right)
:center
:space-between
:space-around
4.align-items:stretch(default);
:flex-start(top)
:flex-bottom(bottom)
:center
:baseline
Items
1.order: 0 (default)
2.flex-basis: min-width;
3.flex-grow: 0 (default)
4.flex-shrink: 1 (default)
flex : grow shrink basis;
5.align-self: flex-start(top)
: flex-end(bottom)
:center