Note that there are some explanatory texts on larger screens.

plurals
  1. POIE6/7 link overlapping + text-indent
    primarykey
    data
    text
    <p>I need a little guidance here...</p> <p>I have 2 links:</p> <pre><code>&lt;div class="tarjBodyHolder"&gt; &lt;div class="imageHolder"&gt; &lt;a href="#" onclick="alert('picture link'); return false;"&gt; &lt;img border="0" src="/picture.jpg" /&gt; &lt;/a&gt; &lt;/div&gt; &lt;div class="linkTransp"&gt; &lt;a href="#" onclick="alert('family link'); return false;"&gt;RAM Moudles&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>The Css:</p> <pre><code>.tarjBodyHolder{ position: relative; clear: both; height: 152px; } .tarjBodyHolder .linkTransp{ position: absolute; bottom: 0px; left: 0px; width: 120px; height: 15px; z-index: 6; /*IE bug*/ } .tarjBodyHolder .linkTransp a { display: block; text-indent: -9999px; width: 120px; height: 15px; overflow: hidden; z-index: 6; } .tarjBodyHolder .imageHolder{ position: absolute; bottom: 0px; left: 0px;/*IE 7 bug*/ } </code></pre> <p>this is the next: </p> <p>The img link is a picture of an item. and this picture has printed on it the category where the items belongs. For example: DDR RAM module has the picture and the string "&lt;&lt; RAM MODULES" printed on it. The idea of this is that when you click this string this takes you to this category of this item and you can see ALL the products contained on it; but if you click the picture of the product you will end in the product description page. what I need is the following:</p> <p>Overlap the "invisible"(*) category link and the picture link. That's the reason why I've used position: absolute; On Firefox it really great.. but I cant figure out how to do this on IE6 / 7. No matter what I do It doesn't work with the text-indent: -9999px.. if I comment this the text becomes visible and I can click on it.. but can't otherwise. I've tried even declaring the A width and height!!</p> <p>(*) I say "invisible" because this link should have the text.. but you shouldn't be able to see it because it's indented -9999px.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload