I'm having trouble with aligning text vertically centered within a box and making sure the background color stretches to full height.
HTML:
<div class="feature-content">
<div class="feature-visual">
<div class="embed-container">
<iframe src="https://player.vimeo.com/video/214852366?controls=0&hd=1&autohide=1" title="Factory Pattern & REHAU" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="" width="640" height="312" frameborder="0"></iframe>
</div>
</div>
<div class="quote">
<div class="words">Improved our conversion rates to a level that far surpassed expectation.
</div>
</div>
CSS:
article section.case-study .feature-content {
align-items: stretch;
align-content: stretch;
display: flex;
padding-top: .35em;
}
article section.case-study .feature-content .feature-visual {
flex-grow: 1;
flex-basis: 65%;
}
article section.case-study .feature-content .quote {
align-self: stretch;
background: #db6f72;
color: #FFF;
flex-basis: 35%;
flex-grow: 1;
position: relative;
}
article section.case-study .feature-content .quote .words {
font-family: "Georgia", serif;
font-size: 2em;
font-style: italic;
line-height: 1.5;
padding-top: 4.5em;
width: 80%;
}
Check out the current live version here
Here's an image of what I am trying to achieve: enter image description here
Any help would be greatly appreciated :)