forked from SallyMcGrath/HTML-CSS-W2-InClassProject
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
133 lines (105 loc) · 2.09 KB
/
styles.css
File metadata and controls
133 lines (105 loc) · 2.09 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
/* HTML/CSS W2 Project
* Work in pairs
* Mark up your content with semantic html
* Lay out your page using flexbox and grid
* Test your work with Devtools.
* You can get pictures and choose custom size in the download at
* https://www.pexels.com/
* If you want to use a different font, get them from
* https://fonts.google.com/
*/
/* Testing your work
== check your CSS
* uses grid
* uses flexbox
* uses at least one media query
== check your HTML
* uses semantic HTML
* has a Lighthouse Access score of 100 <--
* works on desktop and mobile
* works when you size the text up by 200%
== check your design
* follows the example
* you can choose your own colours and fonts if you like
* write your names at the bottom
* take a screenshot at laptop and Moto G4 device sizes in Devtools
*/
body {
font: 100% Arial, Helvetica, sans-serif;
background:rgba(147, 112, 216, 0.74);
}
header{
display:grid;
justify-content:center;
grid-template-areas: "h1" "p";
margin-bottom:100px;
margin-top:100px;
}
h1{ grid-area: h1; }
p{ grid-area:p;}
main{
display:flex;
flex-direction:row;
justify-content:space-evenly;
margin-bottom:150px;
}
section{
border:5px solid red;
padding: 20px;
display:grid;
background-color:rgba(127, 255, 212, 0.521);
width:20%;
align-items:center;
grid-template-areas:"box1 box2"
"box3 box3";
}
h2{
padding-left:10px;
grid-area:box2;
}
img{grid-area:box1; }
ol{
grid-area:box3;
padding:15px;
text-align:left;
font-style: italic;
}
li{line-height: 30pt;}
footer{
display:flex;
justify-content: center;
}
@media screen and (max-width:1570px) {
main{
display:flex;
flex-direction:column;
align-items:center;
margin-bottom:50px;
}
section{
width:55%;
justify-content:center;
margin-bottom: 30px;
}
header{
margin-bottom:10px;
margin-top:10px;
}
}
@media screen and (max-width:360px) {
main{
display:flex;
flex-direction:column;
align-items:center;
margin-bottom:50px;
}
section{
width:80%;
justify-content:start;
margin-bottom: 30px;
}
header{
margin-bottom:10px;
margin-top:10px;
}
}