0
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 and my structure. For a 1080p screen the 20% is enough to display the items I have inside the div t1. However when I open on a 720p screen it cuts a part of the items. as in the image below:
As you can see, part t1 is the one with the search bar and the blue button that hardly appears. As the screen is smaller the 20% were not enough to display the 2 items (search bar and blue button). I wonder if there’s a way that he calculates that percentage automatically so that he doesn’t cut one because it doesn’t fit in the 20%. that is to change these percentages according to the necessary (due to screen resolution)
Strange this behavior, because if you are using %, regardless of the screen size, the div t1, will always be 20% high.
– LeAndrade
yes. However I believe that the components are not responsive. and in a smaller screen occupy more than 20% of the screen.
– Lucas Alves