Try the following solution using position:absolute;:
html, body { margin:0; padding:0; } #footer { width: 700px; margin: 0 auto; position: absolute; bottom:0; } #footer p { text-align: center; padding: 30px; font-size: 10px; }
<div id="footer"> <p> Copyright© 2016 school.pythonanywhere.com. All Rights Reserved <a href="{% url 'privacy' %}">Privacy policy</a></p> </div>
Hint: You can use position:fixed; too if you want to see the footer all the time at the end of the page (on scrolling too).
You want the link Privacy Policy" in a new line too?
You have to set the <a> on footer a block element like the following:
html, body { margin:0; padding:0; } #footer { width: 700px; margin: 0 auto; position: absolute; bottom:0; } #footer p { text-align: center; padding: 30px; font-size: 10px; } #footer a { display:block; }
<div id="footer"> <p> Copyright© 2016 school.pythonanywhere.com. All Rights Reserved <a href="{% url 'privacy' %}">Privacy policy</a></p> </div>