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
193 lines (158 loc) · 3.88 KB
/
style.css
File metadata and controls
193 lines (158 loc) · 3.88 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
/* Add your styling here */
* {
margin: 0px;
padding: 0px;;
box-sizing: content-box;
}
/* Style the body */
body {
font-family: Arial, Helvetica, sans-serif;
margin: 0;
}
/* Header/logo Title */
.header {
padding: 80px;
margin-bottom: 35px;
text-align: center;
background: red;
color: white;
background-image: url(../images/cake1.jpeg);
}
/* Increase the font size of the heading */
.header h1 {
font-size: 40px;
}
.header p{
font-size: 30px;
display: flex;
justify-content:flex-end;
position: relative;
top: 55px;
}
.navbar {
overflow: hidden;
background-color: #333;
position: sticky;
left: 250px;
top: 0;
width: 82%;
padding: 20px 30px 20px 80px;
}
/* Style the navigation bar links */
.navbar a {
float: right;
display: block;
color: white;
text-align: center;
padding: 20px 20px;
text-decoration: none;
box-shadow: 4px 5px 11px 7px rgba(126, 78, 78, 0.35);
}
/* Right-aligned link */
.navbar a.right {
float: right;
}
/* Change color on hover */
.navbar a:hover {
background-color: #ddd;
color: black;
}
/* Active/current link */
.navbar a.active {
background-color: #666;
color: white;
}
/* Column container */
.row {
display: flex;
flex-wrap: wrap;
}
/* Create two unequal columns that sits next to each other */
/* Sidebar/left column */
.side {
flex: 25%;
background-color: #f1f1f1;
padding: 2px;
width: 33%;
}
/* Main column */
.main {
flex: 70%;
background-color: white;
padding: 20px;
}
/* Fake image, just for this example */
.fakeimg {
padding: 20px;
margin-left: 15px;
margin-top: 5px;
height: 160px;
width: 300px;
}
.fakeimg1 {
width: 25%;
height: 250px;
padding: 50px;
margin: 20px;
background-color: #666666;
background-image: url('https://png.pngtree.com/png-clipart/20200701/original/pngtree-pink-love-double-layer-birthday-cake-3d-element-png-image_5378649.jpg');
background-position: center;
background-size: cover;
background-repeat: no-repeat;
}
.fakeimg:nth-of-type(1) {
background-color: #5f4444;
background-image: url('https://png.pngtree.com/background/20210710/original/pngtree-featured-cake-poster-background-picture-image_1041243.jpg');
background-position: center top;
background-size: contain;
background-repeat: repeat;
}
.fakeimg:nth-of-type(2) {
background-color: #5f4444;
background-image: url('https://png.pngtree.com/background/20210716/original/pngtree-cake-on-the-table-picture-image_1348398.jpg');
background-position: center;
background-size: contain;
background-repeat: repeat-x;
}
.fakeimg:nth-of-type(3) {
background-color: #5f4444;
background-image: url('https://png.pngtree.com/background/20210706/original/pngtree-cake-background-picture-image_192588.jpg');
background-position: center top;
background-size: contain;
background-repeat: repeat;
}
.fakeimg:nth-of-type(4) {
background-color: #666666;
background-image: url('https://img.freepik.com/free-photo/sliced-biscuit-roll-with-chocolate-filling-placed-gray-board_114579-55035.jpg?size=338&ext=jpg');
background-position: center;
background-size: cover;
background-repeat: no-repeat;
}
.img2{
display:flex;
align-items: stretch;
height: 250px;
justify-content: space-BE;
width: 80%;
margin-left: 10%;
}
.img2{
align-content: space-between;
}
/* Footer */
footer {
padding: 20px 20px;
text-align: center;
background: #ddd;
}
@media screen and (max-width: 700px) {
.row {
flex-direction: column;
}
}
@media screen and (min-width: 540px {
.navbar a {
float: none;
width: 100%;
}
}