8
I have a problem that I think is easy, but I can not understand how to solve.
I have a structure like:
<div class="conteudo">
<div class="esquerda">
</div>
<div class="direita">
</div>
<div class="clear">
</div>
</div>
Well, the CSS is very simple, the left class has float: left
, the right has float: right
, and to clear the clear:both;
So far so good, the problem is, the content of the Ivs, actually the one on the right, is dynamic, so what happens is that the left div doesn’t follow the height of the right one, and the background I apply is only the height occupied by the content of the left div, leaving the layout totally wrong.
Would anyone know a solution to this? It seems to me that one has to resort to js for this?
You can use flex box. Following link is a great tutorial http://tableless.com.br/flexbox-organizando-seu-layout/
– ismaels