diff --git a/galerie/static/css/galerie.css b/galerie/static/css/galerie.css index 46e02367..4dde889f 100644 --- a/galerie/static/css/galerie.css +++ b/galerie/static/css/galerie.css @@ -6,9 +6,10 @@ /* velká fotka */ /* zmenšování spolu s oknem prohlížeče */ .galerie .obrazek, .titulni_obrazek { - max-width: 100%; + max-width: max(100%, 900px); + max-height: 900px; height: auto; - width: auto\9; /* ie8 */ + width: auto; } .predchozi_obrazek{ diff --git a/galerie/templates/galerie/Galerie.html b/galerie/templates/galerie/Galerie.html index 1901ee98..c436a77e 100644 --- a/galerie/templates/galerie/Galerie.html +++ b/galerie/templates/galerie/Galerie.html @@ -65,7 +65,7 @@ {% endwith %} {% endif%} - {% zobrazit obrazek.jako_bazmek height=vyska width=sirka alt=obrazek.popis title=obrazek.popis class=obrazek %} + {% zobrazit obrazek.jako_bazmek alt=obrazek.popis title=obrazek.popis class=obrazek %} {% if obrazky_dalsi %} {% with obrazky_dalsi|first as dalsi_obrazek %} @@ -111,7 +111,7 @@ {% endfor %} - {% zmenseny_nahled obrazek.jako_bazmek alt=obrazek.popis class=obrazek id=prostredni %} + {% zmenseny_nahled obrazek.jako_bazmek alt=obrazek.popis class=obrazek id="prostredni" %} {# height=obrazek.obrazek_maly.height width=obrazek.obrazek_maly.width #}