further project work
add background image add and initial styling of header and footer (will change colors later)
This commit is contained in:
parent
666e8f3abc
commit
1e764e68a9
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
|
@ -8,10 +8,15 @@
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
<header>for you, emma <3</header>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="cupcakes"></div>
|
<div class="cupcakes"></div>
|
||||||
<img src="./img/sweets.jpg" alt="a box of chocolate cupcakes">
|
<img src="./img/sweets.jpg" alt="a box of chocolate cupcakes">
|
||||||
</div>
|
</div>
|
||||||
<script src="./script/script.js" defer></script>
|
<script src="./script/script.js" defer></script>
|
||||||
|
<footer>
|
||||||
|
<p>happy valentine's day!</p>
|
||||||
|
<p>credits</p>
|
||||||
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -11,8 +11,10 @@ html {
|
||||||
body {
|
body {
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
width: auto;
|
width: auto;
|
||||||
|
background-image: url("/img/background.png");
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,3 +43,15 @@ img {
|
||||||
width: auto;
|
width: auto;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
header {
|
||||||
|
width: 100vw;
|
||||||
|
height: 10vh;
|
||||||
|
background: hotpink;
|
||||||
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
width: 100vw;
|
||||||
|
height: 10vh;
|
||||||
|
background: hotpink;
|
||||||
|
}
|
Loading…
Reference in New Issue