Sorry guys, resending this, I hit the send button by accident before I had
finished.

On 6/20/06, Christine Ce <[EMAIL PROTECTED]> wrote:
>
> On 5/21/06, Christine Ce <[EMAIL PROTECTED]> wrote:
>
> I have this page that needs to look exactly like that:
> http://www.wuongean.com/
> I want the span in div#kanji to be displayed when hovering over  the image
> kanji_small.jpg, and I am trying to achieve this with a  pure css popup.
>
>
> On 5/23/06, Christine Ce <[EMAIL PROTECTED]> wrote:
>
> Well I have had a go at this again and got my popup to work in Firefox
> <snip>
> But it's not working in IE!  So my next question is:  is it possible to
> make it work in IE?  If yes, how?
>
>
> Hello again list!
>
> I thought I'd let you know, in case it's useful to someone,  that I have
> managed to make my popup work in both Firefox and IE6 win without a script.,
> see here:
>
>
> http://www.wuongean.com/beta/
>
>
> It should also work in IE Mac, and I would be really grateful if someone
> could check whether that is the case.
>
> It probably does not in IE5 win, but if  someone could check anyhow that
> would be just grand.
>
> The trick to make it work in IE6 is to have either the background color or
> the font color change between the a:link and the a:hover state.  For IE Mac
> I used a hack, the inline high pass filter (
> http://www.tantek.com/CSS/Examples/inlinehpf.html).
>
> Here is the html:
>

 <div id="kanji">
    <a href="#nogo">
        <img src="images/kanji_small.gif"  />
        <span>
            <p>some text
           </ br>more text
          </ br> yet more text
           </p>
        </span>
    </a>
</div>

and here is the layout css:

#kanji a {
        display: inline;
        text-decoration: none;
        border: none;
        background-color: #fff;
}

#kanji a:hover {
        display: inline;
        text-decoration: none;
        border: none;
        background-color: transparent;
}

#kanji a span {
        display: none;
        visibility: hidden;
        background-color: transparent;
        width: 130px;
        
}

#kanji a:hover span {
        visibility: visible !important;
}

/* for IE5Mac it is important to have position and size
declaration in #kanji a span#popup rather than in #popup
a:hover span#popup but for IE5 it's the opposite so use
hack to make sure IE5win does not see next rule */

i{content:"\"/*"}/**/

#kanji a span {
        z-index: 1;
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        background-color: #fff;
}

All this is based on an article on http://www.tjkdesign.com/

Please let me know if there are any problems with this method.

Thanks in advance for any advice/help/comments.

Christine
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to