<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <style type="text/css"> body { margin: 0; padding: 0; font-family: Arial; font-weight: bold; } a { color: #000; text-decoration: none; } .bannerContent { height: 100%; width: 100%; overflow: hidden; background-color: #fff; position: relative; box-sizing: border-box; border: 1px solid #fff; } .img img { float: right; } .priceCnt .price { display: inline-block; font-size: 1.65em; font-weight: bold; border-radius: 5px; padding: 5px 10px; color: #fff; background-color: #D71A21; } @media screen and (max-height: 109px) { .bannerContent { min-height: 90px; min-width: 400px; } .title { font-size: 1em; padding: 5px 10px 40px 50px; width: 60%; max-width: 450px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .img { display: inline-block; text-align: center; padding: 5px; padding-top: 0px; position: absolute; top: 0; right: 0; } .img img { height: 100%; } .ftr { display: inline-block; height: 53px; position: absolute; bottom: 0px; left: 5px; right: auto; } .ftr img { width: 150px; } .priceCnt { display: inline-block; position: absolute; bottom: 13px; left: 170px; right: auto; width: auto; z-index: 1; } .priceCnt .price { display: inline-block; font-size: 1.65em; font-weight: bold; border-radius: 5px; padding: 5px 10px; color: #fff; background-color: #D71A21; } } @media screen and (max-height: 109px) and (min-width: 520px) { .bannerContent { height: 100%; min-height: 90px; } .title { font-size: 1em; padding: 5px 10px 40px 50px; width: 70%; max-width: 450px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .img { display: inline-block; text-align: center; padding: 5px; padding-top: 0px; position: absolute; top: 0; right: 0; } .img img { height: 100%; } .ftr { display: inline-block; height: 53px; position: absolute; bottom: 0px; right: 360px; left: auto; } .ftr img { width: 150px; } .priceCnt { display: inline-block; position: absolute; bottom: 13px; right: 180px; width: auto; left: auto; } } @media screen and (max-height: 109px) and (min-width: 600px) { .bannerContent { height: 100%; min-height: 90px; } .title { font-size: 1.1em; padding: 5px 10px 40px 50px; width: 90%; max-width: 550px; overflow: hidden; } .img { display: inline-block; text-align: center; padding: 5px; padding-top: 0px; position: absolute; top: 0; right: 0; } .img img { height: 100%; } .ftr { display: inline-block; height: 53px; position: absolute; bottom: 0px; right: 360px; left: auto; } .ftr img { width: 150px; } .priceCnt { display: inline-block; position: absolute; bottom: 13px; right: 180px; width: auto; left: auto; } } @media screen and (min-height: 110px) and (max-height: 149px) { .bannerContent { height: 100%; min-width: 400px; } .title { font-size: 1em; padding: 5px 10px 40px 30px; width: 60%; max-width: 450px; overflow: hidden; } .img { display: inline-block; text-align: center; padding: 5px; padding-top: 0px; position: absolute; top: 0; right: 0; } .img img { height: 95%; } .ftr { display: inline-block; height: 53px; position: absolute; bottom: 0px; left: 5px; right: auto; } .ftr img { width: 150px; } .priceCnt { display: inline-block; position: absolute; bottom: 13px; left: 170px; width: auto; z-index: 1; right: auto; } } @media screen and (min-height: 110px) and (max-height: 149px) and (min-width: 510px) { .bannerContent { height: 100%; min-width: 500px; } .title { font-size: 1em; padding: 5px 10px 40px 30px; width: 65%; max-width: 450px; overflow: hidden; } .img { display: inline-block; text-align: center; padding: 5px; padding-top: 0px; position: absolute; top: 0; right: 0; } .img img { height: 95%; } .ftr { display: inline-block; height: 53px; position: absolute; bottom: 0px; right: 340px; left: auto; } .ftr img { width: 150px; } .priceCnt { display: inline-block; position: absolute; bottom: 13px; right: 170px; width: auto; left: auto; } } @media screen and (min-height: 110px) and (max-height: 149px) and (min-width: 600px) { .bannerContent { height: 100%; } .title { font-size: 1.1em; padding: 5px 10px 40px 50px; width: 70%; max-width: 550px; overflow: hidden; } .img { display: inline-block; text-align: center; padding: 5px; padding-top: 0px; position: absolute; top: 0; right: 0; } .img img { height: 95%; } .ftr { display: inline-block; height: 53px; position: absolute; bottom: 0px; right: 400px; left: auto; } .ftr img { width: 150px; } .priceCnt { display: inline-block; position: absolute; bottom: 13px; right: 220px; width: auto; left: auto; } } @media screen and (min-height: 150px) and (max-height: 239px) { .bannerContent { height: 100%; min-width: 420px; } .title { font-size: 1.3em; padding: 20px 0 40px 30px; width: 50%; overflow: hidden; } .img { display: inline-block; text-align: center; padding: 5px; padding-top: 0px; position: absolute; top: 0; right: 0; } .img img { height: 95%; } .priceCnt { display: inline-block; position: absolute; bottom: 20px; left: 170px; width: auto; z-index: 1; right: auto; } .ftr { display: inline-block; height: 53px; position: absolute; bottom: 7px; left: 5px; right: auto; } .ftr img { width: 150px; } } @media screen and (min-height: 150px) and (max-height: 239px) and (min-width: 610px) { .bannerContent { height: 100%; } .title { font-size: 1.3em; padding: 20px 0 40px 30px; width: 60%; overflow: hidden; } .img { display: inline-block; text-align: center; padding: 5px; padding-top: 0px; position: absolute; top: 0; right: 0; } .img img { height: 95%; } .priceCnt { display: inline-block; position: absolute; bottom: 20px; right: 270px; width: auto; left: auto; } .ftr { display: inline-block; height: 53px; position: absolute; bottom: 7px; right: 450px; left: auto; } .ftr img { width: 150px; } } @media screen and (min-height: 150px) and (max-height: 239px) and (min-width: 660px) { .bannerContent { height: 100%; } .title { font-size: 1.4em; font-family: Arial; font-weight: bold; padding: 20px 0 40px 30px; width: 65%; overflow: hidden; } .img { display: inline-block; text-align: center; padding: 5px; padding-top: 0px; position: absolute; top: 0; right: 0; } .img img { height: 95%; } .priceCnt { display: inline-block; position: absolute; bottom: 20px; right: 270px; width: auto; left: auto; } .ftr { display: inline-block; height: 53px; position: absolute; bottom: 20px; right: 450px; left: auto; } .ftr img { width: 200px; } } @media screen and (min-height: 150px) and (max-height: 239px) and (min-width: 810px) { .bannerContent { height: 100%; } .title { font-size: 1.6em; font-family: Arial; font-weight: bold; padding: 30px 0 40px 50px; width: 65%; overflow: hidden; white-space: nowrap; } .img { display: inline-block; text-align: center; padding: 5px; padding-top: 0px; position: absolute; top: 0; right: 0; } .img img { height: 95%; } .priceCnt { display: inline-block; position: absolute; bottom: 20px; left: 390px; width: auto; right: auto; } .ftr { display: inline-block; height: 53px; width: 200px; position: absolute; bottom: 20px; left: 125px; right: auto; } .ftr img { width: 200px; } } @media screen and (min-height: 240px) and (max-height: 329px) { .bannerContent { height: 100%; min-width: 200px; } .title { font-size: 0.95em; padding: 10px; } .img { display: inline-block; vertical-align: bottom; float: right; } .img img { height: 55%; } .priceCnt { display: inline-block; vertical-align: bottom; position: absolute; top: 50px; left: 0px; margin: 5px 10px 20px 10px; z-index: 1; right: auto; } .priceCnt .price { display: inline-block; font-size: 1.5em; border-radius: 5px; padding: 5px 10px; color: #fff; background-color: #D71A21; } .ftr { margin: 0 auto; height: 53px; width: 200px; position: absolute; bottom: 0px; left: 0px; right: auto; } .ftr img { max-width: 98%; } } @media screen and (min-height: 240px) and (max-height: 329px) and (min-width: 350px) { .bannerContent { height: 100%; } .title { font-size: 1.2em; padding: 20px 0 10px 10px; max-width: 100%; overflow: hidden; margin: 0; } .img { display: inline-block; text-align: right; width: 100%; } .img img { height: 60%; } .priceCnt { display: inline-block; position: absolute; bottom: 20px; left: 170px; width: auto; right: auto; top: auto; margin: 0; } .ftr { display: inline-block; height: 53px; position: absolute; bottom: 7px; left: 5px; right: auto; } .ftr img { width: 150px; } } @media screen and (min-height: 240px) and (max-height: 329px) and (min-width: 450px) { .bannerContent { height: 100%; } .title { font-size: 1.2em; padding: 20px 0 10px 10px; width: 60%; overflow: hidden; margin: 0; } .img { display: inline-block; text-align: right; padding: 5px; padding-top: 0px; position: absolute; top: 0; right: 0; width: 40%; height: 70%; } .img img { height: 100%; } .priceCnt { display: inline-block; position: absolute; bottom: 20px; right: 60px; width: auto; left: auto; top: auto; margin: 0; } .ftr { display: inline-block; height: 53px; position: absolute; bottom: 20px; right: 250px; left: auto; } .ftr img { width: 200px; } } @media screen and (min-height: 240px) and (max-height: 329px) and (min-width: 550px) { .bannerContent { height: 100%; } .title { font-size: 1.4em; padding: 20px 0 10px 10px; width: 60%; overflow: hidden; margin: 0; } .img { display: inline-block; text-align: right; padding: 5px; padding-top: 0px; position: absolute; top: 0; right: 0; width: 40%; height: 70%; } .img img { height: 100%; } .priceCnt { display: inline-block; position: absolute; bottom: 20px; left: 390px; width: auto; right: auto; top: auto; margin: 0; } .ftr { display: inline-block; height: 53px; width: 200px; position: absolute; bottom: 20px; left: 125px; right: auto; } .ftr img { width: 200px; } } @media screen and (min-height: 240px) and (max-height: 329px) and (min-width: 830px) { .bannerContent { height: 100%; } .title { font-size: 1.6em; padding: 30px 0 40px 50px; width: 65%; overflow: hidden; white-space: nowrap; margin: 0; } .img { display: inline-block; text-align: center; padding: 5px; padding-top: 0px; position: absolute; top: 0; right: 0; width: auto; height: auto; } .img img { height: 98%; } .priceCnt { display: inline-block; position: absolute; bottom: 20px; left: 390px; width: auto; right: auto; top: auto; z-index: 1; margin: 0; } .ftr { display: inline-block; height: 53px; width: 200px; position: absolute; bottom: 20px; left: 125px; right: auto; } .ftr img { width: 200px; } } @media screen and (min-height: 330px) { .bannerContent { height: 100%; min-width: 160px; } .title { font-size: 1.2em; line-height: 25px; padding: 10px; text-align: center; max-height: 120px; overflow: hidden; } .img { padding: 10px 0; text-align: center; width: 100%; height: 28%; } .img img { max-height: 100%; max-width: 100%; float: none; } .priceCnt { display: inline-block; text-align: center; position: absolute; bottom: 70px; left: 0; right: 0; width: 100%; z-index: 1; } .priceCnt .price { display: inline-block; font-size: 1.5em; border-radius: 5px; padding: 5px 10px; color: #fff; background-color: #D71A21; } .ftr { display: inline-block; text-align: center; height: 53px; width: 100%; position: absolute; bottom: 5px; left: 0; right: 0; } .ftr img { width: 98%; max-width: 200px; } } @media screen and (min-height: 330px) and (min-width: 290px) { .bannerContent { height: 100%; } .title { font-size: 1.5em; line-height: 30px; padding: 10px; text-align: center; max-height: 80px; overflow: hidden; } .img { padding: 10px 0; text-align: center; width: 100%; height: 40%; } .img img { max-height: 100%; max-width: 100%; float: none; } .priceCnt { display: inline-block; text-align: center; position: absolute; bottom: 70px; left: 0; right: 0; width: 100%; z-index: 1; } .priceCnt .price { font-size: 1.65em; } .ftr { display: inline-block; text-align: center; height: 53px; width: 100%; position: absolute; bottom: 5px; left: 0; right: 0; } .ftr img { width: 200px; } } @media screen and (min-height: 330px) and (min-width: 800px) { .bannerContent { height: 100%; } .title { font-size: 1.6em; text-align: left; padding: 30px 0 40px 50px; margin: 0; max-height: none; line-height: normal; width: 65%; overflow: hidden; white-space: nowrap; } .img { display: inline-block; text-align: center; padding: 5px; padding-top: 0px; position: absolute; top: 0; right: 0; width: auto; height: 98%; } .img img { height: auto; float: right; } .priceCnt { display: inline-block; position: absolute; bottom: 20px; left: 390px; width: auto; right: auto; z-index: 1; } .ftr { display: inline-block; height: 53px; width: 200px; position: absolute; bottom: 20px; left: 125px; right: auto; } .ftr img { width: 200px; } } @media screen and (min-height: 500px) and (min-width: 290px) { .img { height: auto; } } @media screen and (min-height: 500px) and (min-width: 800px) { .img { height: 98%; } } </style> </head> <body> <div class="bannerContent"> <a href="https://www.alza.cz/hobby/gardena-hadice-flex-comfort-13mm-1-2-50m-d5288685.htm?IDP=10122&banner_id=22024" target="_blank"> <div class="title"> GARDENA Hadice zahradní Flex Comfort 13 mm 1/2", erno/oran~ová - délka 50 m </div> <div class="ftr"> <img src="https://affiliate.alza.cz/Content/Images/Banner/button.alza.cz.png" alt="Koupit"/> </div> <div class="priceCnt"> <div class="price"> 1 499 K </div> </div> <div class="img"> <img class="productImg" src="" alt="GARDENA Hadice zahradní Flex Comfort 13 mm 1/2", erno/oran~ová - délka 50 m" data-small="https://cdn.alza.cz/foto/f5/GA/GAR18039-20.jpg" data-large="https://cdn.alza.cz/foto//GA/GAR18039-20.jpg"/> </div> <a href="https://affiliate.alza.cz/bnr.gif?id=22024&idp=10122&productCode=abc&advertismentType=9"></a> </a> </div> <script type="text/javascript"> (function () { var AV_img = new Image(); AV_img.src = 'https://affiliate.alza.cz/bnr.gif?id=22024&idp=10122&productCode=abc&advertismentType=9'; var mqls = [ window.matchMedia("screen and (min-height: 451px) and (min-width: 191px)"), window.matchMedia("screen and (min-height: 451px) and (max-width: 190px)"), window.matchMedia("screen and (min-height: 191px) and (max-height: 450px) and (min-width: 701px)"), window.matchMedia("screen and (min-height: 191px) and (max-height: 450px) and (max-width: 700px)"), window.matchMedia("screen and (max-height: 190px)") ]; function mediaqueryresponse(mql) { var elem = document.getElementsByClassName("productImg")[0]; if (mqls[0].matches) { // {(min-height: 451px) and (min-width: 191px)} query matched var src0 = elem.getAttribute("data-large"); elem.setAttribute("src", src0); } if (mqls[1].matches) { // {(min-height: 451px) and (max-width: 190px)} query matched var src1 = elem.getAttribute("data-small"); elem.setAttribute("src", src1); } if (mqls[2].matches) { // {(min-height: 191px) and (max-height: 450px) and (min-width: 701px)} query matched var src2 = elem.getAttribute("data-large"); elem.setAttribute("src", src2); } if (mqls[3].matches) { // {(min-height: 191px) and (max-height: 450px) and (max-width: 700px)} query matched var src3 = elem.getAttribute("data-small"); elem.setAttribute("src", src3); } if (mqls[4].matches) { // {(max-height: 190px)} query matched var src4 = elem.getAttribute("data-small"); elem.setAttribute("src", src4); } } for (var i = 0; i < mqls.length; i++) { mediaqueryresponse(mqls[i]); // call listener function explicitly at run time mqls[i].addListener(mediaqueryresponse); // attach listener function to listen in on state changes } })(); </script> </body> </html>