I've done Java for a while now and am moving to web development- I am having some troubles however, My code:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js">
var getHeight = function() {
return $(window).height();
}
</script>
I want to get the height of the window here,
img.pos_fixed {
position:fixed;
top:getHeight() / 2;
right:250px;
}
but it does not display in the middle of the screen. I am very new so please don't bash on me that I should learn html/javascript/css as I already am.