-
Notifications
You must be signed in to change notification settings - Fork 0
/
saruStep25.css
119 lines (117 loc) · 2.44 KB
/
saruStep25.css
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
/* div{
text-align: center;
}
p {
text-align: center;
} */
/* p{
text-align:center;
} */
/* .example{
margin: 10px auto;
width: 50px;
background: orange;
} */
/* .parent{
text-align: center;
}
.example{
display: inline-block;
width: 100px;
background: orange;
/* text-align: left; */
/* } */
/* .parent{
height: 150px;
background: orange;
}
.parent p{
line-height: 150px;
text-align: center;
} */
/* .parent{
height: 150px;
background: orange;
}
.parent p {
line-height: 150px;
} */
/* .parent {
/*親要素*/
/* position: relative;
background: orange;
height: 200px;
}
.parent p {
position: absolute;
top: 50%;
-webkit-transform : translateY(-50%);
transform : translateY(-50%); */
/* .parent{
position: relative;
background: orange;
height: 200px;
}
.parent:before{
position: absolute;
top:50%;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
content: 'BOX';
background-image: yellow;
} */
/* .parent {
/*親要素*/
/* position: relative;
background: orange;
height: 200px;
}
.parent p {
position: absolute;
top: 50%;
left: 50%;
-webkit-transform : translate(-50%,-50%);
transform : translate(-50%,-50%);
width: 100px;
text-align: center;/*一応BOX内の文字も中央寄せ*/
/* margin: 0;
} */
/* .parent{
display: flex;
justify-content: center;
align-items: center;
height: 200px;
background: orange;
}
.example{
display: block;
width: 100px;
background: #FFF;
} */
/* .circle{
display: inline-block;
text-align: center;
width: 60px;
height: 60px;
line-height: 60px;
border-radius: 50%;
background: skyblue;
color: #FFF;
} */
.circle {
position: relative;
text-align: center;
background: skyblue;
height: 100px;
width: 100px;
border-radius: 50%;
}
.circle p {
position: absolute;
top: 50%;
left: 0;
width: 100px;/*上のwidthと合わせる*/
text-align: center;
-webkit-transform : translateY(-50%);
transform : translateY(-50%);
}