I'm very new to this, but am trying to put together a page that is a little above my pay grade so far, and it seems to be working well enough, but I cannot seem to figure out how to get the 'input' to stay at the bottom of the flex box and keep the text and image at the top. I have the feeling it's an hierarchy or parent/child issue, but I can't seem to get my brain around it. SO far I have tried everything I know how, but here's where I'm at now...
I've created a separate "DIV ID" with its own set of rules for the input which state that the input)s) should: "align-self: flex-end;" Still not working.. Any ideas would be very much appreciated!
body {
background-color: #faf8ed;
}
.header {
background-color: black;
padding: 21px;
border-radius: 25px;
}
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;
}
p {
font-family: 'Amatic SC', cursive;
font-weight: bold;
font-size: 16px;
}
#container1 {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
height: 100%;
align-items: stretch;
padding-top: 37px;
}
#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;
}
#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;
}
<div id="container1">
<div id="one" class="zoom">
<h1>KING GIZZARD ROCKS!</h1>
<img src="tshirt_2.jpg">
<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-->