#keres{ width: 90%; background-image: url('../../php/kep.php?id=10'); background-position: 10px 10px; ; background-repeat: no-repeat; box-sizing: border-box; border: 2px solid #ccc; border-radius: 4px; font-size: 16px; background-color: white; padding: 12px 20px 12px 40px; box-shadow: 0 0 10px #660000, 0 0 40px #660000, 0 0 80px black; } #jatekok_keres{ position: fixed; display: block; width: 100%; margin-bottom:3%; z-index: 2; left:0.5%; } #keresb{ background-size: auto; font-size: 16px; padding: 12px 10px; box-shadow: 0 0 10px #660000, 0 0 40px #660000, 0 0 80px black; } @media only screen and (max-height:500px) { #jatekok_keres{ margin-bottom:0.3%; } }