Skip to content

Commit a4343b9

Browse files
committed
More phone fixes
1 parent 9aa64f7 commit a4343b9

File tree

1 file changed

+22
-35
lines changed

1 file changed

+22
-35
lines changed

style.css

Lines changed: 22 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -65,71 +65,58 @@ div, p {
6565

6666
.glasses {
6767
position: absolute;
68-
margin-left: auto;
69-
margin-right: auto;
70-
left: 0;
71-
right: 0;
72-
text-align: center;
68+
left: 50%;
69+
top: 50%;
70+
transform: translate(-50%, -50%);
7371
z-index: 5;
7472
}
7573

74+
7675
.accessories {
7776
position: absolute;
78-
margin-left: auto;
79-
margin-right: auto;
80-
left: 0;
81-
right: 0;
82-
text-align: center;
77+
left: 50%;
78+
top: 50%;
79+
transform: translate(-50%, -50%);
8380
z-index: 5;
8481
}
8582

8683
.leye {
8784
position: absolute;
88-
margin-left: auto;
89-
margin-right: auto;
90-
left: 0;
91-
right: 0;
92-
text-align: center;
85+
left: 50%;
86+
top: 50%;
87+
transform: translate(-50%, -50%);
9388
z-index: 3;
9489
}
9590

9691
.reye {
9792
position: absolute;
98-
margin-left: auto;
99-
margin-right: auto;
100-
left: 0;
101-
right: 0;
102-
text-align: center;
93+
left: 50%;
94+
top: 50%;
95+
transform: translate(-50%, -50%);
10396
z-index: 2;
10497
}
10598

10699
.mouth {
107100
position: absolute;
108-
margin-left: auto;
109-
margin-right: auto;
110-
left: 0;
111-
right: 0;
112-
text-align: center;
101+
left: 50%;
102+
top: 50%;
103+
transform: translate(-50%, -50%);
113104
z-index: 4;
114105
}
115106

116107
.highlights {
117108
position: absolute;
118-
margin-left: auto;
119-
margin-right: auto;
120-
left: 0;
121-
right: 0;
122-
text-align: center;
109+
left: 50%;
110+
top: 50%;
111+
transform: translate(-50%, -50%);
123112
z-index: 1;
124113
}
125114

126115
.face {
127116
position: absolute;
128-
margin-left: auto;
129-
margin-right: auto;
130-
left: 0;
131-
right: 0;
132-
text-align: center;
117+
left: 50%;
118+
top: 50%;
119+
transform: translate(-50%, -50%);
133120
z-index: 0;
134121
}
135122

0 commit comments

Comments
 (0)