JSFiddle - React, Tailwind, and code Playground
HTML
<div id="container1">
<div id="one" class="zoom">
<h1>KING GIZZARD ROCKS!</h1>
<img src="http://i.imgur.com/60PVLis.png">
<p>This is the text for this shirt!</p>
<form action="">
<div id="bottom">
<label for="quantity" id="quantity">Quantity:</label>
<input type="number" name="quantity" min="1" max="30" placeholder="0">
<br>
<input type="submit" id="buy" value="BUY">
</div><!--bottom-->
</form>
</div><!--one-->
<div><!--container-->
CSS
#container1 {
display: flex;
/* flex-direction: row; */
/* flex-wrap: wrap; */
justify-content: center;
height: 100vh; /* adjustment */
/* align-items: stretch; */
/* padding-top: 37px; */
}
/* .header {
background-color: black;
padding: 21px;
border-radius: 25px;
} */
#one {
/* border: 1px solid beige; */
font-family: Arial;
font-size: .75em;
padding: 10px;
width: 200px;
/* margin-left: 7px; */
/* margin-right: 7px; */
/* margin-top: 7px; */
/* margin-bottom: 7px; */
/* border-radius: 25px; */
background-color: beige;
display: flex; /* new */
flex-direction: column; /* new */
}
img {
max-width: 100%;
/* flex-wrap: wrap; */
/* margin-left: auto; */
/* margin-right: auto; */
/* margin-top: auto; */
/* margin-bottom: auto; */
/* display: block; */
}
h1 {
font-family: 'Modak', cursive;
font-variant: small-caps;
letter-spacing: 2px;
text-align: center;
font-weight: normal;
margin-top: 0; /* new */
}
p {
font-family: 'Amatic SC', cursive;
font-weight: bold;
font-size: 16px;
}
form {
margin-top: auto; /* new */
}
#bottom {
display: flex;
/* align-self: flex-end; */
}
.zoom {
transition: transform .3s;
/* Animation */
margin: 0 auto;
}
#quantity {
display: flex;
font-family: Arial;
font-size: 1.5em;
font-family: 'Amatic SC', cursive;
font-weight: bold;
text-align: center;
padding-right: 3px;
}
#buy {
display: flex;
font-family: Arial;
font-size: 1.5em;
font-family: 'Amatic SC', cursive;
font-weight: bold;
border-radius: 7px;
}
body {
background-color: #faf8ed;
margin: 0; /* new */
}
* {
box-sizing: border-box;
}