-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnote.txt
39 lines (23 loc) · 850 Bytes
/
note.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
basic div container CSS
.container{
width: 400px;
height: 400px;
background: green; //background color
display: flex;
flex-direction: column; // column for vertical and row for horizontal
}
Layout_width and Layout_height
wrap_content
e.g
<button style=" height: fit-content; width: fit-content; " >text</button>
above statement work as wrap_content
match_parent
in case of width just remove width attribute it will save itself as parent
in cas of height : height:97vh , it will set to 97% of viewport
for align or orientation
for aligning layout items
use align-items for horizontal porpose and justify-content for vertical porpose in css
e.g to put at the centre of the div
justify-content:centre
align-items:centre
for aligning items