adjust grid placement of items

This commit is contained in:
emma 2024-12-13 14:22:44 -05:00
parent 4dd1a95639
commit b20dab65ac
2 changed files with 23 additions and 11 deletions

View File

@ -9,8 +9,8 @@
<body> <body>
<?php include "./includes/header.php" ?> <?php include "./includes/header.php" ?>
<main>
<?php include "./includes/nav.php" ?> <?php include "./includes/nav.php" ?>
<main>
<section> <section>
<h1>welcome to emma's place</h1> <h1>welcome to emma's place</h1>
<p> <p>

View File

@ -16,25 +16,30 @@ html {
body { body {
background-color: var(--body-background-color); background-color: var(--body-background-color);
display: grid; display: grid;
grid-template-columns: 15vw 60vw;
grid-template-rows: 5vh 2fr 5vh; grid-template-rows: 5vh 2fr 5vh;
justify-content: center; justify-content: center;
align-content: space-evenly;
} }
main, nav {
padding-left: 2.5rem;
}
main { main {
background-color: var(--background-color); background-color: var(--background-color);
height: auto; height: auto;
width: 70vw; width: 60vw;
display: grid; grid-column: 2/3;
grid-template-columns: 1fr 2fr; grid-row: 2/3;
gap: 2rem;
} }
header { header {
background-color: var(--background-color); background-color: var(--background-color);
grid-row: 1/2; grid-row: 1/2;
grid-column: 1/3;
height: 5vh; height: 5vh;
width: auto; width: 75vw;
text-align: center; text-align: center;
border-bottom: 10px solid; border-bottom: 10px solid;
border-image-slice: 1; border-image-slice: 1;
@ -45,27 +50,34 @@ header {
footer { footer {
background-color: var(--background-color); background-color: var(--background-color);
grid-row: 3/4; grid-row: 3/4;
grid-column: 1/3;
height: 5vh; height: 5vh;
width: auto; width: 75vw;
text-align: center; text-align: center;
align-self: end; align-self: end;
} }
header, footer {
justify-self: center;
}
nav { nav {
background-color: var(--background-color); background-color: var(--background-color);
grid-row: 2/3; grid-row: 2/3;
width: 10vw; grid-column: 1/2;
height: auto;
justify-self: end; justify-self: end;
width: 15vw;
height: auto;
border-right: 10px solid; border-right: 10px solid;
border-image-slice: 1; border-image-slice: 1;
border-width: 5px; border-width: 5px;
border-image-source: linear-gradient(to bottom, #FCF434, #FFFFFF, #9C59D1, #2C2C2C); border-image-source: linear-gradient(to bottom, #FCF434, #FFFFFF, #9C59D1, #2C2C2C);
} }
/*
section { section {
grid-column: 2/3; grid-column: 2/3;
grid-row: 2/3; grid-row: 2/3;
width: 55vw; width: 55vw;
} }
*/