-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
56 lines (47 loc) · 961 Bytes
/
styles.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
*{
padding: 0%;
margin: 0%;
}
header{
text-align: center;
font-size: xx-large;
font-weight: 600;
color: aliceblue;
background-color: navy;
}
div{
position: relative;/*positions the children relative
to the div rather than the page*/
clip:rect() }
canvas{
position:absolute;/*basically alloes the canvases to be positioned relative to the div*/
height: auto;
width: 60%;
align-self: center;
margin-right:20%;
margin-left: 20%;
margin-top: 5dvi;
border: 1px solid black ;
}
#clouds{
position:absolute;
margin-left: 20%;
margin-top: 9dvi;
width:10%;
background: transparent;
clip: inherit;
}
#car{
position: absolute;
width:10%;
margin-left:30%;
margin-top: 26%;
}
#obstacle1{
position: absolute;
width:8%;
margin-top: 18%;
margin-left: 32%;
display:none;
border:3px solid red;
}