function fix_layout() {
  /* If the window is too small, no margins */
  if ($(window).width() < 880) {
    $("div#page-wrapper").css("margin", "0");
    $("div#page-wrapper").css("width", "100%");
  } else {
    $("div#page-wrapper").css("margin", "0 7.5% 0 7.5%");
    $("div#page-wrapper").css("width", "85%");
  }
}

$(document).ready(fix_layout);
$(window).resize(fix_layout);
