The \documentclass command determines the size and position of the page's head and foot. The page style determines what goes in them.
\documentclass