I am currently working on creating a mobile version of the website. Following the responsive design principles, the block sizes are set in percentages.
html, body{ width: 100%; height: 100% }
One issue I encountered is that when an input box is focused, the virtual keyboard covers part of the screen, causing other elements to shrink in size as well (as they are also set in percentages relative to the body). How can I prevent this from happening? Is there a way to calculate the block heights based on the device screen's height instead? Thank you.