odin-css-grid-practice/01-grid-layout-1/style.css

61 lines
953 B
CSS
Raw Permalink Normal View History

2024-01-25 22:19:33 +00:00
body,
html {
height: 100%;
margin: 0;
}
.container {
text-align: center;
height: 100%;
padding: 16px;
box-sizing: border-box;
display: grid;
grid-template-columns: 1fr 3fr;
grid-template-rows: 1fr 1fr 5fr 1fr;
grid-template-areas: "header header"
"sidebar nav"
"sidebar article"
"footer footer";
gap: 15px;
2024-01-25 22:19:33 +00:00
}
.container div {
padding: 15px;
font-size: 32px;
font-family: Helvetica;
font-weight: bold;
color: white;
border-radius: 15px;
}
.header {
background-color: #006157;
grid-area: header;
2024-01-25 22:19:33 +00:00
}
.sidebar {
grid-area: sidebar;
2024-01-25 22:19:33 +00:00
background-color: #005B94;
}
.nav {
grid-area: nav;
2024-01-25 22:19:33 +00:00
background-color: #642cde;
}
.article {
grid-area: article;
2024-01-25 22:19:33 +00:00
background-color: #7E1DC3;
}
.footer {
grid-area: footer;
2024-01-25 22:19:33 +00:00
background-color: #393f4d;
}
.article p {
font-size: 18px;
font-family: sans-serif;
color: white;
text-align: left;
}