File tree 3 files changed +46
-0
lines changed
hyperskill/06_open_space/01
3 files changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="UTF-8 ">
5
+ < title > Open Space</ title >
6
+ < link rel ="stylesheet " href ="style.css ">
7
+ </ head >
8
+ < body >
9
+ < div class ="space ">
10
+ < div class ="planet-area ">
11
+ < img class ="planet " alt ="" src ="https://stepik.org/media/attachments/lesson/452681/mars.png "/>
12
+ < img class ="rocket " alt ="" src ="https://stepik.org/media/attachments/lesson/452681/rocket.png "/>
13
+ </ div >
14
+ </ div >
15
+ </ body >
16
+ </ html >
Original file line number Diff line number Diff line change
1
+ .space {
2
+ position : relative;
3
+ height : 100vh ;
4
+ width : 100vw ;
5
+ background : url ("https://stepik.org/media/attachments/lesson/452681/space.png" ) repeat center center;
6
+ z-index : 1 ;
7
+ }
8
+
9
+ .planet-area {
10
+ position : absolute;
11
+ height : 30vmin ;
12
+ width : 30vmin ;
13
+ bottom : 0 ;
14
+ left : 0 ;
15
+ }
16
+
17
+ .planet {
18
+ position : absolute;
19
+ bottom : 0 ;
20
+ left : 0 ;
21
+ z-index : 3 ;
22
+ }
23
+
24
+ .rocket {
25
+ position : absolute;
26
+ bottom : 110% ;
27
+ left : 110% ;
28
+ transform : rotate (35deg ) scale (0.3 );
29
+ z-index : 2 ;
30
+ }
You can’t perform that action at this time.
0 commit comments