make layout header and footer fixed when scrolling on a long page
also allows proper display on lower width displays