Forum Moderators: not2easy

Message Too Old, No Replies

IE problems with JS

         

PiisAI

11:56 am on Jul 26, 2006 (gmt 0)

10+ Year Member



can someone tell me why this image:

<div id="Player1Card1" class="Card01H"></div>

#Player1Card1 {
position: absolute;
left: 226px;
top: 58px;
}

#Player1Card1:hover {
position: absolute;
left: 226px;
top: 50px;
}

moves up and down fine in firefox, but are stuffed in ie?

thanks

[edited by: DrDoc at 8:52 pm (utc) on July 31, 2006]
[edit reason]
[1][edit reason] Replace URL with applicable code [/edit]
[/edit][/1]

DrDoc

8:54 pm on Jul 31, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Simply put, IE does not comprehend
:hover
on non-anchor elements.

Your best bet is to simply replace the <div> with <a>, but use

javascript: void(0)
for the href for now.