initial project setup

add index.html, style.css, script.js
initial html and css boilerplate
add image and div container
set flex on body
This commit is contained in:
emma 2025-01-29 21:29:36 -05:00
parent a030f899c8
commit d850cbea87
3 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<title>for you, emma</title>
<link rel="stylesheet" href="./style/style.css">
</head>
<body>
<div class="container">
<img src="./img/sweets.jpg" alt="a box of chocolate cupcakes">
</div>
<script src="./script/script.js" defer></script>
</body>
</html>

View File

@ -0,0 +1,29 @@
*, *::before, *::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-size: 16px;
}
body {
height: 100vh;
width: auto;
display: flex;
justify-content: center;
align-items: center;
}
.container {
height: 75vh;
width: auto;
}
img {
max-height: 100%;
width: auto;
object-fit: contain;
}