Having trouble with a calculation using a CSS property that is not returning any value.
Seems like the issue might be due to the CSS property returning '200px' instead of just '200'. Any suggestions for a workaround? Thanks in advance.
windowHeight = $(window).height(); // This is functioning
logoHeight = $('.home h1').css('height'); // Returns '200px'
logoPosition = windowHeight * 0.5 - logoHeight;