I have four five divs, one of which is a container for the other four. Structure:
<div id="divPai" style="width:100%">
<div id="divInfUser" style="width:25%; height: 30%; background-color: #DCAE4C; float: left; display: inline-block;padding: 10px;">
<ul>
<li></li>
<li></li>
<li></li>
</ul>
</div>
<div id="divFoto" style="width:25%; height: 30%; background-color: #ECEDEF; float: left; display: inline-block;padding: 10px;text-align: center;">
</div>
<div id="divLogo" style="width:25%; height: 30%; background-color: #ECEDEF; float: left; display: inline-block;padding: 10px;">
</div>
<div id="divInf" style="width:25%; height: 30%; background-image: linear-gradient(45deg, #5B5B5F, #868589);; float: left; display: inline-block;padding: 10px;">
<ul>
<li></li>
<li></li>
<li></li>
</ul>
</div>
</div>
The divs of the laterias will be the same size because of li
but the middle divs will have another type of information. If I set the fixed height value, the UL
will exit the div when the resolution decreases. I need all the child divs to have the same height at the beginning and when it is adapting to other resolutions it grows together so the UL
does not get out of the divs