Automatically position the footer.
Reset the padding each time.
Updated padding logic.