forked from CodeYourFuture/HTML-CSS-Coursework-Week3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
70 lines (62 loc) · 1.23 KB
/
style.css
File metadata and controls
70 lines (62 loc) · 1.23 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
.container{
display:grid;
grid-template-columns: repeat(4, 1fr);
}
header{
background-color: lightcoral;
grid-column: 1/-1;
grid-auto-rows: minmax(100px, auto);
grid-gap: 3px;
}
header img {
width: 100px;
}
header h1{text-align: center;
margin-top: 100px;
margin-left: 100px;}
main{
background-color: lightsalmon;
grid-column: 1/-1;
}
.product-varieties{
display: grid;
background-color: magenta;
grid-template-columns: 1fr;
grid-auto-rows: minmax(100px, auto);
grid-gap: 3px;
}
.cake-type{
overflow: hidden;
;
}
.cake-type img{
width: 100%;; height:100%;
padding: 4px;
margin: 5px;
}
.introduction{
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-auto-rows: auto;
}
.text{
grid-area: introduction;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
font-style: italic;
}
@media screen and (min-width:768px){
.product-varieties{
grid-template-columns: 1fr 1fr;
grid-template-rows: max-content;
}
header{
display: flex;
}
}
footer{
display:flex;
grid-column: 1/-1;
background-color: mediumorchid;
align-items: center;
justify-content: center;
}