diff --git a/src/fellchensammlung/static/fellchensammlung/css/styles.css b/src/fellchensammlung/static/fellchensammlung/css/styles.css index 9596be3..f7a22cc 100644 --- a/src/fellchensammlung/static/fellchensammlung/css/styles.css +++ b/src/fellchensammlung/static/fellchensammlung/css/styles.css @@ -1,3 +1,8 @@ +html, body { + margin: 0; + height: 100%; +} + .content-box { margin-top: 25px; } @@ -321,4 +326,19 @@ h1 { .card-rule { width: 100%; } +} + +.photos { + display: flex; + flex-wrap: wrap; +} + +.card-photo { + flex: 1 16%; + margin: 10px; +} + +.card-photo img { + max-width: 100%; + border-radius: 10%; } \ No newline at end of file diff --git a/src/fellchensammlung/templates/fellchensammlung/detail-animal-partial.html b/src/fellchensammlung/templates/fellchensammlung/detail-animal-partial.html index 6c89087..06256ae 100644 --- a/src/fellchensammlung/templates/fellchensammlung/detail-animal-partial.html +++ b/src/fellchensammlung/templates/fellchensammlung/detail-animal-partial.html @@ -18,7 +18,11 @@

{{ animal.description }}

Bilder

-{% for image in animal.photos_list %} - -{% endfor %} +
+ {% for image in animal.photos_list %} +
+ {{ image.alt_text }} +
+ {% endfor %} +
\ No newline at end of file