I have the following structure:
<div class="pai">
<div class="t1">
itens
</div>
<div class="t2">
itens2
</div>
</div>
css
.pai{
height:100%;
}
.t1{
height:20%;
}
.t2{
height:80%;
}
Basically this is my structure. For a 1080p screen the 20% are enough to display the items I have inside div t1. But when I open it on a 720p screen it cuts a portion of the items. as in the image below:
As you can see the part t1 is the one that has the search bar and the blue button that almost does not appear. As the screen is smaller the 20% were not enough to display the 2 items (search bar and blue button). I wonder if there is a way that he calculates this percentage automatically so he does not cut one because he does not fit in the 20%. or change these percentages as needed (due to screen resolution)