Don't let the title fool you.
Check out this code:
#headerimg {
background: url('http://artotek.fi/css/images/artoteklogo.gif');
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;
border-bottom: solid #696969 2px ;
background-size: 200px 250px;
display: block;
width: 100%;
-webkit-box-shadow: inset 0px -6px 5px 3px rgba(76, 76, 94, 0.9);
-moz-box-shadow: inset 0px -6px 5px 3px rgba(76, 76, 94, 0.9);
box-shadow: inset 0px -10px 15px 3px rgba(76, 76, 94, 0.9);
height: 300px;
}
This code is meant to keep the header image in place, hiding behind the content when scrolled.
Take a look at these images:
16" laptop ^
24" desktop (possibly shown correctly on this site) ^
The goal is for the image to always stay within the header regardless of screen size (attempted using background-size: cover;
).
Defining position in pixels or percentages hasn't worked effectively.