tags:

views:

46

answers:

2

I have this weird probleme where IE do not reconize I am hover a div without a backgound color, the DIV is in position absolute

any way to have a transparent background, without a transparent gif?

A: 

Do you have any code? Are you using jQuery etc?

Please provide more information. This is completely do-able in jQuery. Show some HTML and we have a chance of giving you an answer.

griegs
A: 

I have the same problem

<html>
<head>
    <title>Test</title>
</head>
<body>
<div
    style="
        /*background-color: gray;*/
        position: absolute;
        cursor: crosshair;
        display: none;"
    onmouseover="this.style.display = 'block'"
    onmouseout="this.style.display = 'none'"
><span
    style="
        position: relative;
        bottom: 1em;"
    >+</span></div>
<a href="javascript:void(0)"
    onmouseover="document.getElementsByTagName('div')[0].style.display = 'block'"
    onmouseout="document.getElementsByTagName('div')[0].style.display = 'none'"
>Some text.</a>
</body>
</html>

I commented out the background-color and in IE does not work as expected.

I don't want a background color for that div and i want to avoid using a transparent gif as Cedric who opened this question.

Alqin