define height of viewport-sized elements in style instead of on resize event