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 6164637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:01:42+00:00 2026-05-23T22:01:42+00:00

I have a DIV that is relatively positioned. The whole DIV needs to link

  • 0

I have a DIV that is relatively positioned. The whole DIV needs to link to another page.

What I’m doing is adding a link inside the div and applying this CSS to it:

.f170region .linkcover {
    background: #FFF;
    bottom: 0;
    display: block;
    filter: alpha(opacity=0);
    hasLayout: true;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 999;
}

What this does in all browsers other than IE6 is make the link act as a click-able layer over the DIV. The link also has an .ir class added to it to hide the text from inside the link off the screen:

.ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; }

Anyone got a solution to get this to work in IE6. And please don’t give me the lecture about supporting IE6. I’m right there with you.

Here is the HTML that uses this method:

    <div class="alpha omega grid_4 f170region white" id="home_bg_youthzone">
        <h2 class="hidden">Youth Zone</h2>
        <div class="copy">There are many ways for younge residents to get help and support. Find out more...</div>
        <div class="getin">
            <p><span class="pink">Get</span><br />involved</p>
            <p><span class="pink">Get</span><br />in the zone</p>
        </div>
        <a class="linkcover ir" href="<?php echo site_url("/youth-zone/"); ?>" title="Go to Youth Zone">Go to Youth Zone</a>
    </div>

EDIT 2:

http://jsfiddle.net/9gSUd/

  • 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-05-23T22:01:43+00:00Added an answer on May 23, 2026 at 10:01 pm

    I’ve found the solution using a spacer.gif file as the BG. I was using this fix to make the overlay work properly in IE http://kevindees.cc/2011/01/ie-adjacent-positioning-image-and-link-overlap-css-fix/

    This would set the BG to white but set the opacity to 0. This worked in all version of IE but IE6. By setting the background to a spacer.gif instead of white and setting the width/height of the link to 100% I got a working solution in IE6 and all browsers. Here is my final CSS for the link:

    .f170region .linkcover {
        background: url(../images/spacer.gif) no-repeat 0 0;
        bottom: 0;
        display: block;
        filter: alpha(opacity=0);
        height: 100%;
        left: 0;
        opacity: 0;
        position: absolute;
        right: 0;
        top: 0;
        width: 100%;
        z-index: 999;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a div with position: absolute inside a relatively positioned parent. I'd like
I have a div that is absolutely positioned from the top left corner of
I have a block of HTML that looks like this: <div id=header> <h1>title</h1> <h2>subtitle</h2>
I have a scrollable area that contains popup menus. Conceptually, something like this: <div
I have a div with some content that has a negative position relative. I
I have a div that expands to the height of it's content. It works
I have a div that I click on to drag it. Once it's on
I have a div that will serve as container to other element, I have
I have a div that contains a list of messages (it's a chatroom application).
I have a div that is position: absolute and it contains items that get

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.