forked from sylvercodez/Frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
grid.css
62 lines (61 loc) · 900 Bytes
/
grid.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
*{
box-sizing: border-box;
}
.head{
background-color: blue;
text-align: center;
color: antiquewhite;
padding: 60px;
}
body{
margin: 0;
}
.nav{
display: flex;
background-color: red;
}
.nav a{
color: antiquewhite;
padding: 16px 30px;
text-align: center;
text-decoration: none;
}
.row{
display: flex;
flex-wrap: wrap;
}
.left{
flex: 30%;
padding: 20px;
background-color: aqua;
}
.right{
flex: 70%;
padding: 20px;
background-color: blue;
}
.box{
display: flex;
/* width: 100%; */
}
.image{
width: 100%;
padding: 20px;
}
@media screen and (max-width:1000px) {
.row{
flex-direction: column;
}
}
@media screen and (max-width:700px) {
.box, .nav{
flex-direction: column;
}
.box2{
top:auto;
margin-top: 30px;
}
.text{
font-size: 40px;
}
}