I am facing an issue with my HTML layout. I have a full background image set within the body tag, followed by a wrapper element:
<body>
<a href="#" id="bkimage">Background Image</a>
<wrapper>
.................
Here are the styles being applied:
#bkimage {
position: fixed;
background: url('images/bk.jpg') no-repeat top center;
width: 100%;
height: 1240px;
z-index: -1;
display:block;
overflow:hidden;
text-indent:100%;
white-space:nowrap;
}
#wrapper {
margin: 0 auto;
width: 960px;
background: url('images/transpBlack25.png');
The main goal is to make the background image clickable while keeping all webpage contents within the #wrapper element. However, the current method is not working as expected. One possible reason could be the "margin: 0 auto" property on the wrapper, but I'm not certain.
Is there a simple solution to this problem that will allow me to achieve the desired functionality? Any help would be greatly appreciated.