My issue revolves around the positioning of a Hello Bar. The CSS is set to relative, which has caused the entire site to be pushed down. To address this issue, I have implemented the following JavaScript function:
<script language="javascript">
$(window).scroll(function(){
var $this = $(this);
$("#hello_bar").css("position", "fixed");
$('#hello_bar').css('position', "absolute" - $this.scrollTop());
});
</script>
Upon scrolling down the page and returning to the top, the content ends up behind the bar. How can I go about resolving this?