Skip to content

Commit 6729f16

Browse files
authored
Add styling to projects page grid for mobile responsiveness
1 parent 2fea25a commit 6729f16

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Diff for: style/carousel.css

+14
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ body {
195195
.grid-container {
196196
display: grid;
197197
grid-template-columns: auto auto auto;
198+
grid-template-rows: auto;
198199
background-color: #ffffff;
199200
padding: 10px;
200201
}
@@ -207,6 +208,19 @@ body {
207208
box-sizing: border-box;
208209
}
209210

211+
@media(max-width:1024px) {
212+
.grid-container {
213+
display: block;
214+
grid-template-columns: auto;
215+
grid-template-columns: auto;
216+
}
217+
.grid-item {
218+
grid-column: auto;
219+
grid-row: auto;
220+
margin-bottom:10px;
221+
}
222+
}
223+
210224
.zoom {
211225
padding: 50px;
212226
transition: transform .2s;

0 commit comments

Comments
 (0)