-
Notifications
You must be signed in to change notification settings - Fork 0
/
flex.css
80 lines (70 loc) · 1.36 KB
/
flex.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
* {
box-sizing: border-box;
}
body {
font-family: Arial, Helvetica, sans-serif;
}
/* Style the header */
.header {
background-color:lightblue;
padding: 30px;
text-align: center;
font-size: 35px;
}
/* Create three equal columns that floats next to each other */
.column1 {
width: 33.33%;
padding: 10px;
height: 300px; /* Should be removed. Only for demonstration */
}
.column2 {
width: 33.33%;
padding: 10px;
height: 300px; /* Should be removed. Only for demonstration */
}
.column3 {
width: 33.33%;
padding: 10px;
height: 300px; /* Should be removed. Only for demonstration */
}
/* Clear floats after the columns */
.row{
display: flex;
flex-wrap: wrap;
}
/* Style the footer */
.footer {
background-color:darkslategrey;
padding: 10px;
text-align: center;
}
.menu{
background-color:darkslategrey;
padding: 10px;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
}
li {
float: left;
color: white;
font-size:24px;
padding: 12px;
border-right: black solid medium;
}
/* Responsive layout - makes the three columns stack on top of each other instead of next to each other */
@media (max-width: 600px) {
.column1 {
width: 50%;
}
.column2 {
width: 100%;
order: 3;
}
.column3 {
width: 50%;
}
}