Percentage of height not working for portrait screen orientation
问题 I am trying to set percentage for 2 div elements(main and header) contained in the body of html. The problem is that this is not working(the height percentages appearing are wrong) when my screen orientation is portrait. Examples dimensions i am checking are the below: 320x480 320x568 600x800 768x1024 800x1280 I use viewport resizer to check my code. HTML code: <body> <header> <div id="title"> Just a title </div> </header> <main> Main div element here </main> </body> CSS code: html, body{