{% extends "layout.html" %} {% block css %} .center_div{ margin: 0 auto; width:80% /* value of your choice which suits your alignment */ } {% endblock %} {% block jquery %} $(function() { $("#btnStart").click(function() { document.location = "{{ url_for('start') }}"; }); $("#btnInfo").click(function() { document.location = "{{ url_for('info') }}"; }); $("#sub").click(function() { document.forms[0].submit(); }); }); {% endblock %} {% block body %}