I'm doing a main page of a project.
With full resolution its elements look good (logo "zoo park" and play button)
But when I start to decrease the resolution, the elements are cut. Here is how you cut the play button:
Any ideas on how I can solve this problem?
My html + css:
#outPopUp {
/* This image will be displayed fullscreen */
background:url(../images/logo_granja_6.gif) no-repeat center center;
/* The Magic */
background-size:cover;
position: absolute;
left: 15%;
bottom:20%;
width: 65%;
height: 85%;
}
.btn-enter {
outline: 0;
-webkit-box-shadow: none;
box-shadow: none;
background: url(../images/btn_jugar3.png) no-repeat center center;
background-size:cover;
position:absolute;
top: 70%;
left: 27%;
width:40%;
height: 25%;
}
.btn-enter:hover {
outline: 0;
-webkit-box-shadow: none;
box-shadow: none;
background: url(../images/btn_jugar3.png) no-repeat center center;
background-size:cover;
position:absolute;
top: 70%;
left: 26%;
width:41%;
height: 25%;
}
.btn-enter:active {
outline: 0;
-webkit-box-shadow: none;
box-shadow: none;
background: url(../images/btn_jugar3.png) no-repeat center center;
background-size:cover;
position:absolute;
top: 70%;
left: 24%;
width:43%;
height: 25%;
}
<div class="preview-item shake shake-slow" id="outPopUp"></div>
<button type="button" class="btn btn-enter"></button>