Commit 79d4182a authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg Committed by Luko van der Maas
Browse files

Move header image to img tag

parent 168867cd
......@@ -98,13 +98,13 @@
#page-header {
height: 360px;
overflow: hidden;
display: flex;
justify-content: center;
.image {
width: 100%;
width: auto;
height: 100%;
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
max-width: none;
}
}
......
......@@ -104,11 +104,7 @@
<header id="page-header">
{% block header_image_container %}
<div
class="image"
style="background-image: url('{% block header_image %}{% pick_header_image %}{% endblock header_image %}')"
>
</div>
<img src="{% block header_image %}{% pick_header_image %}{% endblock header_image %}" class="image" />
{% endblock header_image_container %}
</header>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment