2
I have four five Ivs, 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 laterias Divs will be the same size because of the li
but the middle ones will have another type of information. If I set fixed height value the UL
will exit the div when decreasing the resolution. I need all daughters to have the same height at the beginning and when adapting to other resolutions it will grow together so that the UL
do not leave the premises
Have you tested
min-height
?– Sergio