I’m having a hard time getting the height of lower screen resolution because my screen resolution is 1920×1080.
Does anyone know how to get height and width of the screen resolution?
I checked my work on a 1024×768 resolution and it is rendered all messed up.
It is not possible to get the height of the screen from CSS. However, using since CSS3 you can use media queries to control the display of the template as per the resolution.
If you want to code on the basis of height using media queries, you can define style-sheet and call it like this.