I am rendering a template that I am attempting to style with a custom style sheet. The file structure is as follows:
/app
- __init__.py
/templates
- markets.html
- base.html
/static
- custom.css
markets.html looks like this:
{% extends 'base.html' %}
{% block content %}
<div class="container">
<div class="row">
<div class="front-page">
<div class="col"></div>
<div class="col-5">Runeberg</div>
<div class="col"> </div>
</div>
</div>
</div>
{% endblock %}
base.html looks like this:
{% extends 'bootstrap/base.html' %}
{% block styles %}
{{ super() }}
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='custom.css') }}">
{% endblock %}
And finally, custom.css looks like this:
.front-page {
margin-top: 25%;
}
I wrote this code by following this example here. The problem is, the style (front-page) is not being applied.