At a narrow viewport, they stack on top of one another. So far so good.
But when they go side to side at a wider viewport, there's an issue: sometimes they push the waves outside the viewport. The .segment they're in have a 100vh height: height of the screen. We want to keep everyone inside that 100vh, waves included.
The wildcard is the text: it's responsive, it's em-based. It could be any height!
But the logo and the sub are SVG: they could be any height--if it helps the text fit.
Use Flexbox, set the SVG components to percentages, use CSS's calc(), whatever it takes, to ensure that the contents never push the waves down in this double column layout.
@rachelnabors To be clear, you just don't want the sub to increase in height in order to make the waves drop, correct? Would setting a max-height on the sub in vh work as a solution?
SO!
We have 3 major components on that first screen:
At a narrow viewport, they stack on top of one another. So far so good.
But when they go side to side at a wider viewport, there's an issue: sometimes they push the waves outside the viewport. The
.segment
they're in have a 100vh height: height of the screen. We want to keep everyone inside that 100vh, waves included.The wildcard is the text: it's responsive, it's em-based. It could be any height!
But the logo and the sub are SVG: they could be any height--if it helps the text fit.
Use Flexbox, set the SVG components to percentages, use CSS's
calc()
, whatever it takes, to ensure that the contents never push the waves down in this double column layout.