I am facing an issue where two divs with text are supposed to sit below each other and adjust automatically to the height of the text. However, they are overlapping as if the text is ignoring the div structure. Here is my current setup:
https://i.sstatic.net/rts4N.png
This is my HTML code:
<div class="one_half_left">
<div class="text1">Text</div>
<div class="text2">XYZ</div>
</div>
And this is my CSS code:
.one_half_left {
margin: 40px 0 0px 40px;
float:left;
width:44%;
}
.text1{
font-family:'NimbusSans', Helvetica, Arial;
text-transform:uppercase;
font-weight:800;
font-size:90px;
color:#948e7d;
min-height: 90px;
}
.text2{
font-family:'NGBEC', Helvetica, Arial;
text-transform:uppercase;
font-weight:800;
font-size:140px;
margin: 0 0 110px 0;
color:#305d0b;
min-height: 140px;
}
Any ideas on how I can resolve this problem would be greatly appreciated. Thank you in advance!