2
I have 3 div’s and div2 should have dynamic content (growing as the content is inserted in it), div1 should follow the growth of div2. How can I do that?
<div id="divPrincipal">
<div id="div1" style="width:20%; background-color:gray;"></div>
<div id="div2" style="width:80%"> Conteúdo dinâmico ... </div>
</div>
Does anyone have any idea?
Are you using any framework?
– Jhonathan
In the case indicated by Renan the div occupies the remaining bottom, already in this case, the objective is to follow laterally. One grows on one side and the other accompanies the other.
– Lucas_Kunze