you just need to make the header and footer floating groups with float relative to top and bottom respectively. Then with your table elements, put them in a group with margins the same size as your header and footer.