How can I set the height to 40% of the view in Ionic? I want my code to run on all screen resolutions, so I am using a percentage for the view height. However, when I set it to 40%, it takes up less space than expected. On the other hand, setting it to 200% takes up more space. Why isn't it taking up 40% of the specified space?
Below is the CSS code I have used:
.a {
height: 200% !important;
border: 1px solid red;
padding-top: 1%;
}
When I set the height to 40%, it takes up less space. It should actually take up 40% of the screen resolution. Can someone help me identify the issue with my code?