I am calculating the size of my Viewport using $(window).height()
which returns 339
Now I want to break my screen into three parts. Top,middle,bottom. I want to know How can I calculate this knowing that the Screen Height returned is 339.
I want to know how many px
out of the total(339) would be covered in 20% of top,60% of middle and 20% of bottom. How would I calculate this? Can anybody help me with this?Also, is my approach right?