Made the CSS Grid Layout

This commit is contained in:
Drew
2022-11-01 12:24:19 +01:00
parent 9445a7f4cd
commit b67a5c2149
2 changed files with 51 additions and 3 deletions

View File

@@ -101,4 +101,46 @@ body {
.tweet-interaction {
display: flex;
align-items: center;
}
/* Three main columns; CSS Grid */
.maintable {
/*background-color: #ffffff; */ /* The colors are there just so that I can see what I'm doing better */
display: grid;
width: 100%;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 1fr 1fr;
gap: 20px;
margin:20px;
}
.leftcol {
background-color: red;
border-radius: 16px;
grid-row: 1/ -1;
margin: 40px;
}
.centercol {
background-color: green;
border-radius: 16px;
grid-row: 1/ -1;
margin: 40px;
}
.searchbar {
background-color: blue;
border-radius: 16px;
height: 400px;
margin: 40px;
}
.popchart {
background-color: rgba(255, 0, 255, 0.344);
border-radius: 16px;
height: 400px;
margin: 40px;
}