Skip to content

Commit

Permalink
Fix the background to fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
kingsidharth committed Nov 5, 2012
1 parent 396d4c0 commit cc6f5c2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
{% if page.background %}
url('{{page.background}}')
{% else %}
url('/images/backgrounds/default.jpg')
url('{{site.url}}/images/backgrounds/default.jpg')
{% endif %}
right center no-repeat; background-size: cover;">
right center fixed no-repeat; background-size: cover;">
<div id='header_area'></div>
<!-- #header_area -->
<div id='content_area'>
Expand Down
8 changes: 8 additions & 0 deletions js/scripts.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
/*
* INDEX
* 1. Sets minimum content height to full browser height.
*/


// 1. Sets minimum content height to full browser height.
$(function() {
$("#content_box").css("min-height", $(window).height() );
//$("#logo").css("height", $("#logo").css('width') );
});

//2.
var os = navigator.platform;

0 comments on commit cc6f5c2

Please sign in to comment.