Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8287949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:10:32+00:00 2026-06-08T12:10:32+00:00

I have a html page with a full background image within the body tag,

  • 0

I have a html page with a full background image within the body tag, followed by a wrapper:
<body>
<a href="#" id="bkimage">Background Image</a>
<wrapper>
.................

Styles:

#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 idea is to make the background image clickable.
But we need to keep the complete contents of webpage within the #wrapper.
body and wrapper tags already have other background images.

This method is not working.
I guess it might be because of the wrapper having “margin: 0 auto” property? But am not sure.

Is there a simple workaround for this problem?
Please help…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T12:10:33+00:00Added an answer on June 8, 2026 at 12:10 pm

    The link is not clickable because z-index:-1 sets it behind all the other elements on the page. If something is in the background, and there is something else in front of it, all the clicks directed towards the background element will end up landing on the element directly in front of it. If you’re trying to make the entire page act like one giant link, you could enclose everything in the anchor tag.

    <style>
    #bkimage {
        position: fixed;
        top:0;
        left:0;
        background: url('images/bk.jpg') no-repeat top center;
        width: 100%;
        height: 1240px;
        display:block;
    }
    #wrapper {
        margin: 0 auto;
        width: 960px;
        background: url('images/transpBlack25.png');
    }
    </style>
    
    <body>
        <a href="" id="bkimage">
        <div id="wrapper">content</div>
        </a>
    </body>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a seemingly simple html construct: <div class=featured-image img-wrapper full-width> <a href=http://localhost/wordpress/?p=26> <img
I have html page with full of link. but they inside the pre tag
I have a var that contains a full html page, including the head, html,
I have an html page with a link like this: <a href=javascript:window.print()>Print QR code</a>
I have an HTML web page full of divs and span tags identified with
Here is my page's HTML: <body> <header></header> <div class=conteudo_representantes></div> <div class=rodape></div> </body> I have
So, I have a DIV full of four HTML buttons that use an image
I have an HTML page which contains an Object tag to host an embedded
I have a web page with nothing more than pure HTML, CSS and full
There is a map placed as a background image on an html page. There

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.