Is there a way to style my div elements so that the text inside will increase the height on smaller screens without changing the font? If the height doesn't adjust, the text will overflow. Here's an example of what I mean.
I've also created a pen if you prefer working with that.
I stumbled upon this answer which seems to address my issue, but I'm not quite sure how to make the necessary modifications.
#index-customer-title {
margin: 40px 20px 40px 20px;
}
#test-wrapper {
top: 0;
left: 0;
right:0;
height: 240px;
max-width: 1200px;
text-align: left;
margin: auto;
position: relative;
}
#test-first {
display: inline;
width: 44%;
float: left;
height: 200px;
margin-left: 3.33%;
margin-right: 3.33%;
margin-top: 20px;
margin-bottom: 3.33%;
text-align: left;
display: inline-block;
border: 2px solid #d5d5d5;
}
#test-second {
display: inline;
width: 44%;
float: right;
height: 200px;
margin-right: 3.33%;
margin-top: 20px;
margin-bottom: 3.33%;
text-align: left;
display: inline-block;
border: 2px solid #d5d5d5;
}
.quotes {
font-style: italic;
padding-top: 10px;
font-size: 18px;
}
<div id="test-wrapper">
<div id="test-first>
<blockquote class="quotes">"THIS IS TEXT. IT WILL OVERFLOW ON SMALL SCREENS. THIS IS TEXT. IT WILL OVERFLOW ON SMALL SCREENS. THIS IS TEXT. IT WILL OVERFLOW ON SMALL SCREENS. THIS IS TEXT. IT WILL OVERFLOW ON SMALL SCREENS. THIS IS TEXT. IT WILL OVERFLOW ON SMALL SCREENS."</blockquote>
</div>
<div id="test-second">
<blockquote class="quotes">"THIS IS TEXT. IT WILL OVERFLOW ON SMALL SCREENS. THIS IS TEXT. IT WILL OVERFLOW ON SMALL SCREENS. THIS IS TEXT. IT WILL OVERFLOW ON SMALL SCREENS. THIS IS TEXT. IT WILL OVERFLOW ON SMALL SCREENS. THIS IS TEXT. IT WILL OVERFLOW ON SMALL SCREENS."
</blockquote>
</div>
</div>