-
Notifications
You must be signed in to change notification settings - Fork 2
/
style1.css
63 lines (54 loc) · 1.05 KB
/
style1.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
* {
box-sizing: border-box;
}
/* styling the header */
.header {
background-color: pink;
padding: 15px;
text-align: center;
}
/* styling navigation */
.nav-menu {
overflow: hidden;
background-color: black;
}
.nav-menu a {
float: left;
text-align: center;
display: block;
color: cornsilk;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
.nav-menu a:hover {
background-color: rgb(240, 24, 240);
color: white;
}
/* styling content layout */
.colA, .colB, .colC {
float: left;
width: 31%;
padding: 15px;
text-align: justify;
}
h2 {
color: darkolivegreen;
text-align: center;
}
.colB {
text-align: center;
}
/* media query settings for responsive website */
/* size for tablets, setting it to 50% will create 2 columns */
@media screen and (max-width:600px) {
.colA, .colB, .colC {
width: 50%
}
}
/* size for cellphones, setting it to 100% will create 1 column */
@media screen and (max-width:400px) {
.colA, .colB, .colC {
width: 100%
}
}