Hello I have 3 divs, A, B and C. A and B are inside the C. Please take a look at the image.
I have tryed everything but still can't make the height of A being equal the height of B. B is dynamic, it depends on the fit of the text to the window's width. So it doesn't work because the height of DIV C is not defined, it is auto, therefore height: 100% of DIV A doesn't work.
My code is:
<div style="display:block; width:100%; height:auto; margin:25px;">
<div style="height:100%; width:50px; display:block; float:left; background-color:rgb(12,12,12); margin-right:10px;">
<p2>1</p2>
</div>
<div style="width: calc(100% - 60px); display:block; float:left; background-color:rgb(12,12,12); padding:15px;">
<p2>A client orders building construction for his or her business or family, it can be as an 1 floor building as well as an 100 floor building or even a district.</p2>
</div>
Of course there is the 3rd /div at the end but I can't put it here for some reason. I don't know why. Thank you in advance guys.