summaryrefslogtreecommitdiff
path: root/sublab_project
diff options
context:
space:
mode:
Diffstat (limited to 'sublab_project')
-rw-r--r--sublab_project/news/templates/news/news_image.html2
-rw-r--r--sublab_project/static/css/sublab.css8
2 files changed, 1 insertions, 9 deletions
diff --git a/sublab_project/news/templates/news/news_image.html b/sublab_project/news/templates/news/news_image.html
index 3c490c6..cac6bdc 100644
--- a/sublab_project/news/templates/news/news_image.html
+++ b/sublab_project/news/templates/news/news_image.html
@@ -7,7 +7,7 @@
<h2>Bild: {{ object.title }}</h2>
<div>
{% thumbnail object.image "820" upscale=False as image %}
- <img src="{{ image.url }}" width="{{ image.width }}" height="{{ image.height }}" align="left" />
+ <img src="{{ image.url }}" style="max-width:{{ image.width }}px; max-height:{{ image.height }}px;" class="contentimage" />
{% endthumbnail %}
</div>
<p><a href="{{ object.get_absolute_url }}">Zurück zum Artikel</a></p>
diff --git a/sublab_project/static/css/sublab.css b/sublab_project/static/css/sublab.css
index a08bfec..b4f6127 100644
--- a/sublab_project/static/css/sublab.css
+++ b/sublab_project/static/css/sublab.css
@@ -149,14 +149,6 @@ img.webcamthumb {
border: 2px solid #444;
}
-img.bigimage {
- width: 100%;
- max-width: 640px;
- margin-left: auto;
- margin-right: auto;
- display: block;
- }
-
.floatright {
float: right;
}