I'm attempting to attach a button to a page. I may not be an expert, but here's what I have so far:
body {
width:100%;
height:100%;
background:#181516;
overflow:hidden;
position:absolute;
}
.bg {
background:url(../images/entrance.jpg) no-repeat center center ;
height:100%;
z-index:1;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
And now for the buttons;
.door {
display:inline-block;
width:170px;
margin-top:22%;
}
However, on smaller or larger screens, the button ends up in random places :D
I need it to be fixed within a square. The background picture is of a small door, and the button should be inside that door... Margin or padding in pixels or percentage always remain constant. Can anyone assist me with this?