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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:44:52+00:00 2026-05-30T08:44:52+00:00

This is my code : HTML <div class="myDiv">text under link!</div> <a class="myLinkTransparent" href="#">&nbsp;</a> <a

  • 0

This is my code :

HTML

<div class="myDiv">text under link!</div>        
<a class="myLinkTransparent" href="#">&nbsp;</a>    
<a class="myLinkRed" href="#">&nbsp;</a>    

CSS

.myDiv
{
    position:relative; 
    z-index:40; 
    width:310px;
}

.myLinkTransparent
{
    z-index:50; 
    position:absolute; 
    top:0px; 
    left:0px; 
    width:100px;  
    text-decoration:none;
    background-color:transparent;    
}

.myLinkRed
{
    z-index:50; 
    position:absolute; 
    top:0px; 
    left:100px; 
    width:100px;  
    text-decoration:none;
    background-color:red;    
}

both link with transparent and red background should be "linked".

But in fact, on IE (every version I try: 7,8,9) the link is "broken", such as a "hole" to the text above the link.

Why? And how can I fix this?

  • 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-30T08:44:54+00:00Added an answer on May 30, 2026 at 8:44 am

    1 . The behaviour is not exactly as you expect originally due to Normalized CSS option set in JsFiddle by default (look at the left under JS frameworks choice and so). Lets remove it to guarantee we own all styles.

    2 . However, just unchecking that won’t fix it completely. You’ll be able to sense it on the top left taking small width and height.

    To fix the width, you need to set display:block;

    3 . To fix the height, you need to set actual height. For example height: 35px;.

    4 . After all this, you’ll find the link is clickable only in areas that’s not text, because the browser knows it’s transparent, it thinks it’s click-through also.

    This behaviour is described here: http://haslayout.net/css/No-Transparency-Click-Bug

    You need to apply the below fix (copied from article, just changed filename):

    filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="non-existing-or-so.png",sizingMethod="scale");
    

    .

    The modified fiddle (tested in IE9 standards modes for IE9, IE8, IE7:

    http://jsfiddle.net/Meligy/PPdbc/11/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code : HTML <div class="draggable_container"> <div id="draggable_1" class="draggable">&nbsp;</div> </div> CSS .draggable_container
I have this code : HTML <div class="temperatura"> <a href="/link/" class="temperatura_localita"> <div style="padding-left:12px;"> Text1
I have this code : HTML (meaning 4.0) <div class="temperatura"> <a href="/link/" class="temperatura_localita"> <span
This is my code : HTML <div style="float:left; width:100px;"> <a class="openTab" href="http://www.link.it">1 Line</a> <div
I have this code : HTML <div class="draggable_main_container"> <div class="draggable_container"> <div class="draggable"> <div class="minus">
This is my code : HTML <div style="display:none;"> <div id="example"> <div class="child">Hello</div> </div> </div>
I have this code : HTML <div class="box_video"> <object width="330" height="290" type="application/x-shockwave-flash" data="http://www.youtube.com/v/KEkR1ox_K10?version=3&amp;f=user_uploads&amp;app=youtube_gdata&amp;rel=1&amp;border=0&amp;fs=1&amp;autoplay=0" style="visibility:
I have this HTML code: <div class='com_box'> <div class='com_box_c'> <div class='com_box_info'> <a id='quote'>quote</a> </div>
I have HTML code like this : <div> <a>Link A1</a> <a>Link A2</a> <a>Link A3</a>
Say I have jquery code like this: html += '<div class=index>' + item.index +

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.