-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
65 lines (56 loc) · 803 Bytes
/
index.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
* {
box-sizing: border-box;
}
body {
font-family: 'Work Sans', sans-serif;
font-size: 20px;
color: #444;
text-align: center;
line-height: 1.5;
}
nav {
position: fixed;
top: 0;
left: 0;
right: 0;
padding: 1% 0;
background-color: #aaa;
}
section {
min-height: 500px;
padding: 10% 0;
background-color: #bbb;
}
section:nth-child(even) {
background-color: #ddd;
}
div{
display: inline;
text-align: center;
}
.div-1{
position: relative;
float: left;
top: 25%;
left: 25%;
}
.div-2 {
position: relative;
float: right;
top: -25%;
left: -25%;
}
@media (min-width: 320px) and (max-width: 480px) {
.div-1{
float: none;
top: 0;
left: 0;
display: block;
}
.div-2 {
float: none;
top: 0;
left: 0;
display: block;
}
}