Yesterday I wanted to modify the margins of a LaTex document: the first thing I tried was simply to modify the following variables:
However, this modifies only the width of the document's body but not the width of the header and the footer (I am using the package fancyhdr).
It is possible to fix this problem using the package geometry, like this:
The document attached to this post is a LaTex "template" I use for my the exercise series at school.
Centering elements using CSS
I found this useful page: Centering things.
This post has an attachement: download it here.